createUiModification method

Future<UiModificationIdentifiers> createUiModification({
  1. required CreateUiModificationDetails body,
})

Creates a UI modification. UI modification can only be created by Forge apps.

Each app can define up to 100 UI modifications. Each UI modification can define up to 1000 contexts.

Permissions required:

  • None if the UI modification is created without contexts.
  • Browse projects project permission for one or more projects, if the UI modification is created with contexts.

Implementation

Future<UiModificationIdentifiers> createUiModification(
    {required CreateUiModificationDetails body}) async {
  return UiModificationIdentifiers.fromJson(await _client.send(
    'post',
    'rest/api/3/uiModifications',
    body: body.toJson(),
  ));
}