Struct Docs
Struct.PIM 4
Struct.PIM 4
  • Struct PIM Documentation
  • API Reference
  • Latest updates from Struct HQ
  • Latest updates in Documentation
  • Fundamental concepts
    • Get familiar with Struct PIM
    • Catalogues & categories
    • Products & variants
    • Attributes
    • Product structures
    • Identifiers
    • Global lists
    • Localization & segmentation
    • Revisions & changelog
    • Publications
    • Supplier onboarding portal
  • Tutorials
    • Helpful guides
      • How to search efficiently
      • How to use Import
        • How to import products
        • How to import data into a list property on entities
        • How to import categories
        • How to import with media
        • How to use File templates
    • Example projects
      • Working with the API
  • Integration
    • Integrate with Struct PIM
    • Web API
    • Webhooks
  • Media format
  • API Reference
    • Introduction
    • Endpoints
      • AssetFolders
      • Assets
      • AssetTypes
      • AttributeGroups
      • Attributes
      • AttributeScopes
      • Browse
      • BusinessUnits
      • Catalogues
      • Categories
      • Dimensions
      • Exports
      • EnrichmentInsightSetups
      • GlobalLists
      • Languages
      • Maintenance
      • Miscellaneous
      • Messaging
      • Permissions
      • Products
      • ProductStructures
      • Publications
      • Transactions
      • UserGroup
      • UserRoles
      • Users
      • VariantGroups
      • UserTasks
      • Variants
      • Webhooks
      • Workflows
      • Models
Powered by GitBook
On this page
  1. API Reference
  2. Endpoints

UserRoles

PreviousUserGroupNextUsers

Endpoint for managing Roles

Returns a single userRoles from the tenant

get
Authorizations
Path parameters
uidstring · uuidRequired
Responses
200
OK
404
Not Found
get
GET /v1/Roles/{uid} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "Created": "2025-05-09T12:22:56.697Z",
  "LastModified": "2025-05-09T12:22:56.697Z",
  "CreatedBy": "text",
  "LastModifiedBy": "text",
  "Uid": "123e4567-e89b-12d3-a456-426614174000",
  "Name": "text",
  "PermissionSetup": {
    "AssignedPermissions": [
      "123e4567-e89b-12d3-a456-426614174000"
    ]
  }
}

Deletes an existing role

delete
Authorizations
Path parameters
uidstring · uuidRequired
Responses
200
OK
404
Not Found
delete
DELETE /v1/Roles/{uid} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*

No content

  • GETGet all usersRoles in the tenant
  • POSTCreates a new user role
  • PUTUpdates an existing role
  • GETReturns a single userRoles from the tenant
  • DELETEDeletes an existing role

Get all usersRoles in the tenant

get
Authorizations
Responses
200
OK
404
Not Found
get
GET /v1/Roles HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "Created": "2025-05-09T12:22:56.697Z",
    "LastModified": "2025-05-09T12:22:56.697Z",
    "CreatedBy": "text",
    "LastModifiedBy": "text",
    "Uid": "123e4567-e89b-12d3-a456-426614174000",
    "Name": "text",
    "PermissionSetup": {
      "AssignedPermissions": [
        "123e4567-e89b-12d3-a456-426614174000"
      ]
    }
  }
]

Creates a new user role

post
Authorizations
Body
Uidstring · uuidOptional
Namestring | nullableOptional
Responses
200
OK
404
Not Found
post
POST /v1/Roles HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 143

{
  "Uid": "123e4567-e89b-12d3-a456-426614174000",
  "Name": "text",
  "PermissionSetup": {
    "AssignedPermissions": [
      "123e4567-e89b-12d3-a456-426614174000"
    ]
  }
}

No content

Updates an existing role

put
Authorizations
Body
Uidstring · uuidOptional
Namestring | nullableOptional
Responses
200
OK
404
Not Found
put
PUT /v1/Roles HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 143

{
  "Uid": "123e4567-e89b-12d3-a456-426614174000",
  "Name": "text",
  "PermissionSetup": {
    "AssignedPermissions": [
      "123e4567-e89b-12d3-a456-426614174000"
    ]
  }
}

No content