Organization
Required permissions: Organization.Organization.ReadWrite
Authorizations
Path parameters
organizationIdinteger · int32Required
The organization identifier
Body
all ofOptional
Responses
200
The organization client was created
application/json
400
Input data was invalid
application/json
401
Not authorized
application/json
403
Not allowed
application/json
500
Internal server error
post
/api/organization/{organizationId}/clientPOST /api/organization/{organizationId}/client HTTP/1.1
Host: qa-api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"clientName": "text",
"rolesIds": [
1
]
}{
"id": 1,
"organizationId": 1,
"clientId": "text",
"clientSecret": "text",
"clientName": "text",
"hint": "text",
"roleIds": [
1
]
}Required permissions: Organization.Organization.ReadWrite
Authorizations
Path parameters
organizationIdinteger · int32Required
The organization identifier
clientIdinteger · int32Required
The organization client identifier
Responses
204
The organization client was deleted
No content
400
Input data was invalid
application/json
401
Not authorized
application/json
403
Not allowed
application/json
500
Internal server error
delete
/api/organization/{organizationId}/client/{clientId}DELETE /api/organization/{organizationId}/client/{clientId} HTTP/1.1
Host: qa-api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Required permissions: Organization.Organization.ReadWrite
Authorizations
Path parameters
organizationIdinteger · int32Required
The organization identifier
clientIdinteger · int32Required
The organization client identifier
Responses
200
The organization client secret was rotated
application/json
400
Input data was invalid
application/json
401
Not authorized
application/json
403
Not allowed
application/json
500
Internal server error
put
/api/organization/{organizationId}/client/{clientId}/secretPUT /api/organization/{organizationId}/client/{clientId}/secret HTTP/1.1
Host: qa-api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"organizationId": 1,
"clientId": "text",
"clientSecret": "text",
"clientName": "text",
"hint": "text",
"roleIds": [
1
]
}Was this helpful?