putAppProperty method

Future<OperationMessage> putAppProperty({
  1. required String propertyKey,
  2. required dynamic body,
})

Sets the value of a Forge app's property. These values can be retrieved in Jira expressions through the app context variable.

For other use cases, use the Storage API.

The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters.

Permissions required: Only Forge apps can make this request.

Implementation

Future<OperationMessage> putAppProperty(
    {required String propertyKey, required dynamic body}) async {
  return OperationMessage.fromJson(await _client.send(
    'put',
    'rest/forge/1/app/properties/{propertyKey}',
    pathParameters: {
      'propertyKey': propertyKey,
    },
    body: body,
  ));
}