deleteUserProperty method
Deletes a property from a user.
Note: This operation does not access the user properties created and maintained in Jira.
Permissions required:
- Administer Jira global permission, to delete a property from any user.
- Access to Jira, to delete a property from the calling user's record.
Implementation
Future<void> deleteUserProperty(
{String? accountId,
String? userKey,
String? username,
required String propertyKey}) async {
await _client.send(
'delete',
'rest/api/3/user/properties/{propertyKey}',
pathParameters: {
'propertyKey': propertyKey,
},
queryParameters: {
if (accountId != null) 'accountId': accountId,
if (userKey != null) 'userKey': userKey,
if (username != null) 'username': username,
},
);
}