Create a resource type
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Body
This class represents the ResourceType data transfer object for command requests.
codestring · min: 1Required
The ResourceType code.
namestring · min: 1Required
The name of the ResourceType.
descriptionstring · min: 1Required
The description of the ResourceType.
Responses
201
The request was successful.
application/json
401
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
application/json
403
The user's access was denied.
application/json
429
The user has exceeded the rate limit.
application/json
post
POST /api/v1/resource-types HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"code": "text",
"name": "text",
"description": "text"
}
{
"success": true,
"statusCode": 201,
"message": "The request was successful.",
"data": {
"id": "sApKpllz4sAplsmzha",
"parentBrandId": null,
"guid": "00000000-0000-0000-0000-000000000000",
"code": "USER",
"name": "User",
"description": "The user resource",
"tags": "ResourceType Tags",
"type": "BuiltIn"
},
"errors": []
}
Last updated
Was this helpful?