Creates a new role for an application. You must specify the Id of the application you are creating the role for. You can optionally specify an Id for the role inside the ApplicationRole object itself, if not provided one will be generated.

post/api/application/{applicationId}/role/{roleId}

Request

  • Base URL: http://localhost:9011
  • URL: http://localhost:9011/api/application/{applicationId}/role/{roleId}
  • Auth: API key in header Authorization

Path parameters

applicationIdstring required

The Id of the application to create the role on.

roleIdstring required

The Id of the role. If not provided a secure random UUID will be generated.

Headers

X-FusionAuth-TenantIdstring UUID

The unique Id of the tenant used to scope this API request. Only required when there is more than one tenant and the API key is not tenant-scoped.

Request body

sourceApplicationIdstring uuid

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.