Skip to main content
PUT
/
users
/
{userId}
/
counterparty-category-personalizations
Create a user-level counterparty category personalization
curl --request PUT \
  --url https://east.sandbox.spade.com/users/{userId}/counterparty-category-personalizations \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "counterpartyId": "<string>",
  "categoryId": "<string>"
}
'
{
  "counterpartyId": "<string>",
  "categoryId": "<string>",
  "userId": "<string>"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

userId
string
required

The userId of the relevant user.

Body

application/json

Schema for creating a counterparty category personalization.

counterpartyId
string
required

The ID of the counterparty.

Example:

"d730906b-f1a8-49f1-9939-f27390170a6d"

categoryId
string
required

The ID of the category. Can be a Spade category ID (e.g. "011-000-000-000") or a custom category ID (e.g. "e4cf5379-583f-44ed-b625-366044e666e6").

Example:

"011-000-000-000"

Response

Updated

The newly created counterparty category personalization.

counterpartyId
string
required

The ID of the counterparty.

Example:

"d730906b-f1a8-49f1-9939-f27390170a6d"

categoryId
string
required

The ID of the category. Can be a Spade category ID (e.g. "011-000-000-000") or a custom category ID (e.g. "e4cf5379-583f-44ed-b625-366044e666e6").

Example:

"011-000-000-000"

userId
string

The ID of the newly created counterparty category personalization.

Example:

"user1234"