Codec groups API

create new entry

POST /api/rest/admin/codec-groups

Parameters

Name Description
data[type] Resource type (codec-groups)
data[attributes][name] Name
data[relationships][codecs] Codecs

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjU2LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjEyMDAxfQ.hoX8wdCEXSiE54MwzOzrozs6d3iRxpih5o8QyRfDfkw
Host: example.org
Cookie: 

Route

POST /api/rest/admin/codec-groups

Body

{"data":{"type":"codec-groups","attributes":{"name":"create-name"},"relationships":{"codecs":{"data":[{"type":"codec-group-codecs","id":102}]}}}}

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
location: http://example.org/api/rest/admin/codec-groups/16
vary: Accept
etag: W/"869743d12b9071833dcc888289b8e20f"
cache-control: max-age=0, private, must-revalidate
x-request-id: de381785-15dd-44b6-ad9c-3cc7f887eb0e
x-runtime: 0.019110
content-length: 335

Status

201 Created

Body

{
  "data": {
    "id": "16",
    "type": "codec-groups",
    "links": {
      "self": "http://example.org/api/rest/admin/codec-groups/16"
    },
    "attributes": {
      "name": "create-name"
    },
    "relationships": {
      "codecs": {
        "links": {
          "self": "http://example.org/api/rest/admin/codec-groups/16/relationships/codecs",
          "related": "http://example.org/api/rest/admin/codec-groups/16/codecs"
        }
      }
    }
  }
}