Authentication
curl -X PATCH "https://app.journeybee.io/api/v1/partnerships/{partnershipId}" \
-H "Authorization: Bearer your-api-key-uuid" \
-H "Content-Type: application/json" \
-d '{"tierId": 3, "assignedUsers": [123, 456]}'
Path Parameters
The unique identifier of the company partnership to update
Request Body Schema
ID of the tier to assign to this partner (set to null
to remove)
ID of the category to assign to this partner (set to null
to remove)
UUID of the stage to move this partner to
Array of user IDs to assign to this partnership (replaces existing assignments)
Array of tag IDs to assign to this partnership (replaces existing tags)
Array of custom field values to update
ID of the custom field to update
Field type: text
, textarea
, number
, date
, boolean
, select
, multi_select
Field value object matching the field typeShow Value Object Examples
For date fields (ISO format)
For select fields (option ID)
For multi-select fields (array of option IDs)
Fallback partner data for when partner company becomes inactiveShow Fallback Data Object
Response Schema
The updated company partnership ID
Timestamp of when the partnership was last updated
Example Request
curl -X PATCH "https://app.journeybee.io/api/v1/companies/123/partnerships/789" \
-H "Authorization: Bearer jb_api_1234567890abcdef" \
-H "Content-Type: application/json" \
-d '{
"tierId": 3,
"categoryId": 2,
"stageUuid": "stage-uuid-456",
"assignedUsers": [123, 456],
"tags": [10, 11, 12],
"customFields": [
{
"customFieldId": 5,
"type": "number",
"value": {
"number": 150000
}
},
{
"customFieldId": 6,
"type": "text",
"value": {
"text": "Updated notes about this partnership"
}
}
],
"fallbackData": {
"name": "TechCorp Solutions",
"website_url": "https://techcorp.com",
"country_label": "United States"
}
}'
Example Response
{
"id": 789,
"uuid": "partnership-uuid-789",
"updated_at": "2024-01-15T14:30:00Z"
}
Error Responses
{
"error": "Invalid field values or stage UUID not found"
}
{
"error": "Invalid API key or insufficient permissions"
}
{
"error": "Write access required for this operation"
}
{
"error": "Partnership not found or not accessible"
}
{
"error": "Stage change not allowed due to business rules"
}
Notes
- Requires API key with
write_access
permission
- All changes trigger webhook events for external integrations