put
https://{host}/api_gateway/v1/badges/badgeMeta//
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
This API allows you to update the activation status of the badge.
NoteFor detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call.
Prerequisites
- Authentication: Basic or OAuth authentication
- Default access group
Resource information
| URI | /api_gateway/v1/badges/badgeMeta/{badgeId}/{activationStatus} |
| HTTP method | PUT |
| Pagination | NA |
| Batch support | NA |
Example request
curl --location --request PUT 'https://eucrm.cc.capillarytech.com/api_gateway/v1/badges/badgeMeta/68ccf60d28a4f97c042c83c1/activate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic bWFkaHVI3MjU2YQ==' \
--data '{
"active": true
}'curl --location --request PUT 'https://eucrm.cc.capillarytech.com/api_gateway/v1/badges/badgeMeta/68ccf60d28a4f97c042c83c1/deactivate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic bWFk3MjU2YQ==' \
--data '{
"active": true
}'Request path parameter
| Parameter | Data Type | Description |
|---|---|---|
| activationStatus* | Enum | Activation status of the badge. Supported values: Activate, Deactivate |
| badgeId* | String | Unique identifier ("id") generated during the creation of the badge |
https://eucrm.cc.capillarytech.com/api_gateway/v1/badges/badgeMeta/6543688e66a87827bb61e62a/activatehttps://eucrm.cc.capillarytech.com/api_gateway/v1/badges/badgeMeta/6543688e66a87827bb61e62a/deactivateExample response
{
"data": {
"id": "68ccf60d28a4f97c042c83c1",
"isActive": true
},
"errors": [],
"warnings": []
}{
"data": {
"id": "68ccf60d28a4f97c042c83c1",
"isActive": false
},
"errors": [],
"warnings": []
}Response parameter
| Parameter | Data Type | Description |
|---|---|---|
| id | String | Unique identifier for the badge. |
| isActive | Boolean | Indicates whether the badge is active. |
| errors | Array | Contains details of any errors. |
| warnings | Array | Contains details of any warnings. |
