1. Permission
  • Introdução
    • Comece Aqui
    • Autenticação
    • Recursos
  • API
    • Enterprise
      • Overview
      • Create
      • Show
      • Update
      • Delete
      • Index
      • Profile
    • Company
      • Overview
      • Create
      • Show
      • Update
      • Delete
      • Index
    • Order
      • Overview
      • Create
      • Show
      • Update
      • Delete
      • Index
      • Search external
    • Customer
      • Create
      • Show
      • Update
      • Delete
      • Index
      • Validate phone
      • Blocked (batch)
      • Search individual
      • Search external
      • Track Record
      • Point
    • Withdrawal
      • Rescue
      • Reactivate
      • Show
      • Delete
      • Index
      • Search available
      • Quantity
      • Quantity Company (Monthly)
      • Quantity (Last Days)
    • Activation
      • Create
      • Update
      • Show
      • Delete
    • Promotion
      • Create
      • Update
      • Show
      • Delete
      • Index
    • Submission
      • Index
      • Show
      • Delete
    • Individual
      • Create
      • Index
      • Delete
    • Campaign
      • Create
      • Show
      • Update
      • Delete
      • Index
    • Profile
      • Profile
      • Update profile
      • Update password profile
      • Inactivate
    • User
      • Create
      • Show
      • Update
      • Delete
      • Index
    • Role
      • Create
      • Index
    • Permission
      • Create
        POST
      • Index
        GET
      • Delete
        DELETE
      • Show
        GET
      • Update
        PUT
    • Status
      • Create
      • Index
      • Update
      • Delete
    • Tag
      • Create
      • Index
      • Update
      • Delete
    • Segment
      • Create
      • Show
      • Update
      • Delete
      • Index
      • Pre Query Builder Segment
    • Product
      • Create
      • Show
      • Update
      • Delete
      • Index
      • Search external
      • Quantity
      • Quantity Sale Product Enterprise
      • Quantity Sale Product Enterprise (Monthly)
    • Webhooks
      • Overview
      • Create
      • Index
      • Delete
    • Billing
      • Quota
      • Index
      • Show
    • User Access Pin
      • Request
      • Revalidate
    • Target
      • Create
      • Delete
    • Redeem
      • Create
      • Index
    • Reward
      • Create
      • Index
      • Update
      • Delete
      • Show
      • Update active
    • Subscription
      • Index
      • Webhook Asaas
    • Payment Profile
      • Index
      • Update
  1. Permission

Update

PUT
/permissions/permission_id
Permission
Endpoint Update (PUT)
Esse endpoint é responsável por atualizar as informações de uma permission existente

Requisição

Parâmetros Header

Parâmetros Bodymultipart/form-data

Respostas

🟢200OK
text/plain
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/permissions/permission_id' \
--header 'Authorization: Bearer $TOKEN' \
--form 'name=""' \
--form 'description=""' \
--form 'active=""' \
--form 'roles=""'
Response Response Example
[
  {
    "id": "0813584a-dc6d-4319-bc25-562f839f84c0",
    "name": "Api-setup",
    "description": "Api-setup",
    "roles": [
      {
        "id": "f3fc4942-50f0-4437-862a-f8347948ebf8",
        "action": "read",
        "description": "Visualizar todas ofertas",
        "is_public": true,
        "pattern": "pattern",
        "module": "module",
        "created_at": "2022-03-21T11:56:42.000Z",
        "updated_at": "2022-03-21T11:56:42.000Z"
      }
    ],
    "enterprise_id": "a840567c-807c-4ec6-9de6-595e04342ef8",
    "created_at": "2025-11-18T20:32:08.000Z",
    "updated_at": "2025-11-18T20:32:08.000Z"
  }
]
Modificado em 2025-11-18 20:46:27
Página anterior
Show
Próxima página
Create
Built with