Share Assets

Description

Share Assets

The share_update method is used to assign assets or content to users.

The access type defines whether the user can only view the assets or content or edit them:

  • "access_type": 1 = can view
  • "access_type": 2 = can edit
URL https://publish.broadsign.com/api/asset/share_update/
Method PUT
Header Content-Type: application/json

Sample Request

Copy
{
  "ids":[10000024],"group":[],"user":[{"id":5,"access_type":1}],
  "deleted":    []
}

Sample Response

Status: 200 (OK)

Copy
{
  "shared_groups":[

  ],
  "sharable_groups":[
    {
      "id":4,
      "access_type":1,
      "name":"Local Administrators "
    },
    {
      "id":2,
      "access_type":1,
      "name":"Local Operators "
    },
    {
      "id":1,
      "access_type":1,
      "name":"Network Operators "
    },
    {
      "id":3,
      "access_type":1,
      "name":"Restricted Local Operators "
    }
  ],
  "shared_users":[
    {
      "first_name":"Clarice",
      "id":5,
      "last_name":null,
      "email":"Clarice@broadsign.com",
      "access_type":1
    }
  ],
  "sharable_users":[
    {
      "first_name":"Betty",
      "id":4,
      "last_name":null,
      "email":"betty@broadsign.com",
      "access_type":1
    }
  ]
}

Error Response Status Code

Status: 400 (BAD REQUEST)