POST projects/:projectId/users:import | Autodesk Construction Cloud APIs | Autodesk Platform Services

https://aps.autodesk.com/en/docs/acc/v1/reference/http/admin-v2-projects-project-Id-users-import-POST/

import requests
import json

url = "{{base_domain}}construction/admin/v2/projects/{{project_id}}/users:import"

payload = json.dumps({
  "users": [
    {
      "email": "{{admin_email}}",
      "products": [
        {
          "key": "projectAdministration",
          "access": "administrator"
        },
        {
          "key": "insight",
          "access": "administrator"
        },
        {
          "key": "docs",
          "access": "administrator"
        },
        {
          "key": "takeoff",
          "access": "administrator"
        },
        {
          "key": "designCollaboration",
          "access": "none"
        },
        {
          "key": "modelCoordination",
          "access": "none"
        },
        {
          "key": "build",
          "access": "none"
        },
        {
          "key": "cost",
          "access": "none"
        }
      ]
    }
  ]
})
headers = {
  'Authorization': 'Bearer {{access_token}}',
  'Content-Type': 'application/json',
  'User-Id': '{{admin_id}}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

카카오톡 채널 친구추가
0
Would love your thoughts, please comment.x
()
x