Create a resource type

Creates a new resource type.

post
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: 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
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?