PATCH /brands/:id_or_alias/transfer_ownership
Transfers ownership of a brand
Path parameters
-
ID of the resource to return
-
owner_user_id integer
PATCH /brands/{id_or_alias}/transfer_ownership
curl \
-X PATCH https://api.cosmily.com/api/v1/brands/{id_or_alias}/transfer_ownership \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"id": 1,
"alias": "pasjel",
"title": "PasJel",
"owner": {
"id": 1,
"username": "admin",
"last_active": "2021-10-04T13:24:22.000Z"
},
"created_at": "2021-10-04T13:24:22.000Z",
"updated_at": "2021-11-13T20:23:18.000Z"
}
}
Response examples (200)
{
"data": {
"id": 1,
"alias": "pasjel",
"owner": {
"id": 1,
"username": "admin",
"last_active": "2021-10-04T13:24:22.000Z"
},
"title": "PasJel",
"created_at": "2021-10-04T13:24:22.000Z",
"updated_at": "2021-11-13T20:23:18.000Z"
}
}