Synswi
  1. Permission
Synswi
  • Accounts
    • Get account setting
      GET
    • Update account setting
      POST
    • Get profile
      GET
    • Create new profile
      POST
    • List Accounts
      GET
  • Devices
    • Get Devices
      GET
  • Dispute
    • Get disputes
      GET
  • Invoice
    • Get invoice by id
      GET
    • Get invoices
      GET
    • Create an invoice
      POST
    • Pay an invoice
      POST
    • Send Invoice
      POST
    • Update an invoice
      POST
  • Payment instruments
    • Create a payment instrument
    • Get payment instruments
      GET
    • Get a payment instrument by id
      GET
  • Transactions
    • Get a transaction by id
      GET
    • Get transactions
      GET
    • Create a transaction
      POST
  • Settlements
    • get settlements
      GET
    • get settlement entries
      GET
  • Identity
    • Register an user
    • Login
    • Validate Token
    • Create an api key
    • List api keys
  • Programs
    • Accounts
  • Permission
    • create user roles
      POST
    • Verify user roles
      POST
  1. Permission

Verify user roles

Developing
POST
https://api-dev.synswi.com/permissions/users/roles/verify

Request

Body Params application/json

Example
{
    "requiredRoles": ["admin"],
    "accountId": "acc-c068c34e-b12d-48b1-bc5f-c85edae9fc9b",
    "userId": "user-d1bcaa91-f8b1-4778-8d9a-7d5e97ec4f52"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-dev.synswi.com/permissions/users/roles/verify' \
--header 'Content-Type: application/json' \
--data-raw '{
    "requiredRoles": ["admin"],
    "accountId": "acc-c068c34e-b12d-48b1-bc5f-c85edae9fc9b",
    "userId": "user-d1bcaa91-f8b1-4778-8d9a-7d5e97ec4f52"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "message": "string"
}
Previous
create user roles
Built with