POST/spaces/api/v1/spaces/{spaceID}/pages/{pageID}/permissions.json

create one or many pagepermission entries for a page. This will return a list

of permissions that have been added with ID.

Path Params

  • Name
    spaceID
    Type
    integer
    required
    Description
  • Name
    pageID
    Type
    integer
    required
    Description

Body Params

    • Name
      pagepermission
      Type
      object
      Description
      PagePermissionCreate adds a new PagePermission to the data store.

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
    • Code
      404
      Type
      object
      Schema
      Description
      404 Not Found
    • Code
      500
      Type
      object
      Schema
      Description
      500 Internal Server Error

    Examples

    200 OK

    PagePermission
    {
      "pagepermission": {
        "createdAt": "2024-07-26T20:26:26.473Z",
        "createdBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "deletedAt": "2024-07-26T20:26:26.473Z",
        "deletedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "id": 0,
        "page": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "requester": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "role": "edit",
        "updatedAt": "2024-07-26T20:26:26.473Z",
        "updatedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        }
      }
    }