DELETE
Lift location restrictions
Company space Cannot be undone For: Administrator · Permission: asset_restrictions_locations.delete Conditions
  • Exactly one of agent_id or user_profile_id must be sent; sending both is refused.
  • The agent account or user profile must belong to the current company.
  • Every listed location must be an existing, shared location of the current company, and must currently carry an active restriction for that person; if any one is missing the call is refused and nothing is lifted.
What else happens
  • The restrictions are lifted; the locations become eligible again for that person, and the restriction can be created again later.
  • No stock, accounting or notification change.
Part of Limit access to locations and books.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

agent_id
string | null

Identifier of the agent account whose restrictions are lifted (27-character KSUID string). Required when user_profile_id is not sent; refused when user_profile_id is sent. The agent account must belong to the current company.

Required string length: 27
user_profile_id
string | null

Identifier of the user profile (the assignment of a user to a profile in the current company) whose restrictions are lifted (27-character KSUID string). Required when agent_id is not sent. It must belong to the current company.

Required string length: 27
asset_ids[]
string[]
required

Identifiers of the locations to free (27-character KSUID strings). At least one is required, without duplicates. Each must currently be restricted for the given person.

Required string length: 27
response
enum<string>
default:none

Response mode. Default none; none answers 204 No Content.

Available options:
none

Response

No Content (response mode none).