API REFERENCE
Add Artist to Organization
On this page
/api/organizations/artistsAdd an artist to an organization. This allows organization members to access and manage the artist. This endpoint is idempotent - calling it multiple times with the same artistId and organizationId will not create duplicate records.
Authentication
x-api-key in header
bearerAuth bearer
Request
curl --request POST \
--url 'https://api.recoupable.dev/api/organizations/artists' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"artistId": "artist-account-uuid",
"organizationId": "org-account-uuid"
}'Request body required
Artist-organization association parameters
application/json
artistIdstringrequiredThe account ID of the artist to add
format: uuid
organizationIdstringrequiredThe account ID of the organization
format: uuid
Responses
200Artist added to organization successfully+
application/json
statusstring · enumrequiredStatus of the request
Values: "success"
idstringrequiredUUID of the created artist-organization link
format: uuid
400Bad request - missing required parameters+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
messagestringrequiredError message describing what went wrong
401Missing or invalid credentials+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
messagestringrequiredError message describing what went wrong
403Caller is not a member of the organization+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
messagestringrequiredError message describing what went wrong
Full specification
Download the OpenAPI file for complete schemas, constraints, and examples.
Download accounts.jsonView operation source
{
"description": "Add an artist to an organization. This allows organization members to access and manage the artist. This endpoint is idempotent - calling it multiple times with the same artistId and organizationId will not create duplicate records.",
"security": [
{
"apiKeyAuth": []
},
{
"bearerAuth": []
}
],
"requestBody": {
"description": "Artist-organization association parameters",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddArtistToOrganizationRequest"
}
}
}
},
"responses": {
"200": {
"description": "Artist added to organization successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddArtistToOrganizationResponse"
}
}
}
},
"400": {
"description": "Bad request - missing required parameters",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OrganizationsErrorResponse"
}
}
}
},
"401": {
"description": "Missing or invalid credentials",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OrganizationsErrorResponse"
}
}
}
},
"403": {
"description": "Caller is not a member of the organization",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OrganizationsErrorResponse"
}
}
}
}
}
}