Skip to Content
CerebrumDocs
GuidesAPI referenceTrust & security

Affiliate package with organization

Related workflow: Package sets · Package access

POST
/v1/packages/{packageId}/affiliate

Grants a specific organization access to the selected package.

Related: CRA Package Access

Authorization

apiKey
headerapikey<token>

Path Parameters

packageId*string

Request Body

application/json
  1. body
organizationId*string

Organization id to grant access to this package (typically a CRA affiliate).

Response Body

Package access granted; returns the new access record.

application/json
  1. response
id*string
packageSetId*string
organizationId*string
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.cerebrum.com/v1/packages/string/affiliate' \  -H 'apikey: CEREBRUM_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "organizationId": "a3f1c9d2-6b4e-4c8a-b7e5-2d9f0e1a3c47"}'
Example Response
{  "id": "4a8c2e6f-0b3d-4d5a-8f1c-6e2a4c8b0d93",  "packageSetId": "81eb7401-8ff0-4404-8450-4d7508482c19",  "organizationId": "a3f1c9d2-6b4e-4c8a-b7e5-2d9f0e1a3c47",  "createdAt": "2026-03-04T10:20:00.000Z",  "updatedAt": "2026-03-04T10:20:00.000Z"}