Organization
Required permissions: Organization.Organization.ReadWrite
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
POST /api/organization/{organizationId}/client HTTP/1.1
Host: qa-api.switchmarket.se
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
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
DELETE /api/organization/{organizationId}/client/{clientId} HTTP/1.1
Host: qa-api.switchmarket.se
Accept: */*
No content
Required permissions: Organization.Organization.ReadWrite
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
PUT /api/organization/{organizationId}/client/{clientId}/secret HTTP/1.1
Host: qa-api.switchmarket.se
Accept: */*
{
"id": 1,
"organizationId": 1,
"clientId": "text",
"clientSecret": "text",
"clientName": "text",
"hint": "text",
"roleIds": [
1
]
}
Was this helpful?