Requests

Asking an organisation to let you manage it, and withdrawing a request.

MethodPathSummary
POST/v1/partner/requestsAsk to manage an organisation
POST/v1/partner/requests/:id/withdrawWithdraw a request

#Ask to manage an organisation

POST/v1/partner/requests
Address
https://<your-org>.brambleit.cloud/api/v1/partner/requests
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).

Request body JSON

NameTypeDescription
domainstringOne of the organisation's verified domains.
permissionsarray of anyWhat you're asking for: devices.read, device_management.manage.
notestringA message for them.

Response 201

FieldTypeDescription
idinteger
customerstring
Example response
JSON
{
  "id": 42,
  "customer": "string"
}

Errors

StatusMessage
404No Bramble organisation uses that domain.
400That's your own organisation.

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/partner/requests' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"string","permissions":[],"note":"string"}'

#Withdraw a request

POST/v1/partner/requests/:id/withdraw
Address
https://<your-org>.brambleit.cloud/api/v1/partner/requests/:id/withdraw
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).

Path parameters

NameTypeDescription
idrequiredinteger

Response 200

FieldTypeDescription
statusstring
Example response
JSON
{
  "status": "active"
}

Errors

StatusMessage
404Not found
409This has already ended.

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/partner/requests/42/withdraw' \
  -H "X-API-Key: $BRAMBLE_KEY"