Skip to content

Function: deleteRestrictions()

ts
function deleteRestrictions(client, parameters): Promise<{
[key: string]: unknown;
  _links: {
   [key: string]: unknown;
     base?: string;
     byOperation?: string;
     collection?: string;
     context?: string;
     download?: string;
     editui?: string;
     edituiv2?: string;
     next?: string;
     prev?: string;
     self?: string;
     tinyui?: string;
     webui?: string;
  };
  limit: number;
  restrictionsHash: string;
  results: ContentRestriction[];
  size: number;
  start: number;
}>;

Defined in: src/v1/api/contentRestrictions.ts:90

Removes all restrictions (read and update) on a piece of content.

Permissions required: Permission to edit the content.

Parameters

ParameterTypeDescription
clientClient-
parameters{ expand?: ( | "content" | "restrictions.user" | "read.restrictions.user" | "update.restrictions.user" | "restrictions.group" | "read.restrictions.group" | "update.restrictions.group")[]; id: string; }-
parameters.expand?( | "content" | "restrictions.user" | "read.restrictions.user" | "update.restrictions.user" | "restrictions.group" | "read.restrictions.group" | "update.restrictions.group")[]A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand. - restrictions.user returns the piece of content that the restrictions are applied to. Expanded by default. - restrictions.group returns the piece of content that the restrictions are applied to. Expanded by default. - content returns the piece of content that the restrictions are applied to.
parameters.idstringThe ID of the content to remove restrictions from.

Returns

Promise&lt;{ [key: string]: unknown; _links: { [key: string]: unknown; base?: string; byOperation?: string; collection?: string; context?: string; download?: string; editui?: string; edituiv2?: string; next?: string; prev?: string; self?: string; tinyui?: string; webui?: string; }; limit: number; restrictionsHash: string; results: ContentRestriction[]; size: number; start: number; }>