Codec groups API

update values

PUT /api/rest/admin/codec-groups/:id

Parameters

Name Description
data[type] Resource type (codec-groups)
data[id] Codec group ID
data[attributes][name] Name

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjU1LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYyfQ.SkC1yqacn6EKn-1cCPw_jLgF-QKCiMFXZrjhS48qjcY
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/codec-groups/17

Body

{"data":{"type":"codec-groups","id":17,"attributes":{"name":"name"}}}

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
vary: Accept
etag: W/"848899f5450f4c7c50ba0e47ec9d2157"
cache-control: max-age=0, private, must-revalidate
x-request-id: ba05ad55-4928-42bc-8c90-dc29df3c2134
x-runtime: 0.012749
content-length: 328

Status

200 OK

Body

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