Get a Custom API Role Policy
GEThttps://useast.api.elasticpath.com/v2/permissions/custom-api-role-policies/:custom_api_role_policy_id
Get a Custom API Role Policy
Request
Path Parameters
custom_api_role_policy_id stringrequired
The ID of the Custom API Role Policy.
Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string",
"create": true,
"list": true,
"read": true,
"update": true,
"delete": true,
"links": {
"self": "/v2/permissions/custom-api-role-policies/3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"meta": {
"timestamps": {
"updated_at": "2017-01-10T11:41:19.244Z",
"created_at": "2017-01-10T11:41:19.244Z"
}
},
"relationships": {
"custom_api": {
"data": {
"id": "652e39d8-d613-493e-8c20-fef99ad6327a",
"type": "string"
}
},
"role": {
"data": {
"id": "f5f77dd6-71df-48a4-b4f4-d2605a79f3ca",
"type": "string"
}
}
}
}
}
Not found. The requested entity does not exist.
- application/json
- Schema
- Example (auto)
- not-found
Schema
errors Error[]required
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Requested entity not found
{
"errors": [
{
"title": "Not Found",
"status": "404",
"detail": "Not found"
}
]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (auto)
- internal-server-error
Schema
errors Error[]required
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://useast.api.elasticpath.com/v2/permissions/custom-api-role-policies/:custom_api_role_policy_id");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear