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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTEsInN1YiI6NjN9.INc3jqVhfDO3mxo7Zu9XsjbH1A6KdJN7hdMWzx2jS4Q
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-Download-Options: noopen
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: 4921327f-1c95-4403-9447-969f314c61e0
X-Runtime: 0.018938
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"
        }
      }
    }
  }
}