v1

latestOpenAPI 3.0.32026-07-24198357534.7 KB
User & Permission

Update a single resource - Feature Permission

Replaces the PermissionFeature resource.

put/permissions/features/{id}

Path parameters

idstring required

Resource identifier

Request body

featuresstring[]
usersIdentifier[]

This object should contains a collection of user identifiers

Example request

{
  "features": [
    "document_type_view",
    "document_type_new",
    "medias_view",
    "..."
  ],
  "users": [
    "johndoe",
    "janedoe"
  ],
  "description": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "name": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  }
}

Response

PermissionFeature resource updated

featuresstring[]
dateCreatedstring date-time nullable

This is an ISO datetime

dateModifiedstring date-time nullable

This is an ISO datetime

idstring

This is the unique identifier of the resource

Example response

{
  "features": [
    "feature_id_1",
    "feature_id_2"
  ],
  "name": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "description": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "id": "identifier_example",
  "users": [
    {
      "id": "identifier_example"
    }
  ]
}