Download OpenAPI specification:Download
Crafter Profile API
Creates a new access token
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
The access token
application | string |
master | boolean |
Array of objects | |
expiresOn | integer |
id | string |
{- "application": "sample-app",
- "master": false,
- "tenantPermissions": [
- {
- "allowedActions": [
- "MANAGE_TICKETS",
- "READ_TENANT",
- "MANAGE_PROFILES"
], - "tenant": "sample-tenant"
}
], - "expiresOn": 1704067200000
}
{- "application": "sample-app",
- "master": false,
- "tenantPermissions": [
- {
- "allowedActions": [
- "MANAGE_TICKETS",
- "READ_TENANT",
- "MANAGE_PROFILES"
], - "tenant": "sample-tenant"
}
], - "expiresOn": 1704067200000,
- "id": "a3f1a69c-3a7d-4b28-a944-61a7dc6877b8"
}
Get the information for a specific access token.
id required | string Example: b4d44030-d0af-11e3-9c1a-0800200c9a66 The ID of specific access token being requested for more information |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "application": "crafterengine",
- "master": false,
- "tenantPermissions": [
- {
- "allowedActions": [
- "MANAGE_TICKETS",
- "READ_TENANT",
- "MANAGE_PROFILES"
], - "tenant": "*"
}
], - "expiresOn": 1704067200000,
- "id": "b4d44030-d0af-11e3-9c1a-0800200c9a66"
}
Get all existing access tokens.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
[- {
- "application": "adminconsole",
- "master": true,
- "tenantPermissions": [
- {
- "allowedActions": [
- "*"
], - "tenant": "*"
}
], - "expiresOn": 1704067200000,
- "id": "e8f5170c-877b-416f-b70f-4b09772f8e2d"
}, - {
- "application": "crafterengine",
- "master": false,
- "tenantPermissions": [
- {
- "allowedActions": [
- "MANAGE_TICKETS",
- "READ_TENANT",
- "MANAGE_PROFILES"
], - "tenant": "*"
}
], - "expiresOn": 1704067200000,
- "id": "b4d44030-d0af-11e3-9c1a-0800200c9a66"
}, - {
- "application": "craftersocial",
- "master": false,
- "tenantPermissions": [
- {
- "allowedActions": [
- "MANAGE_TICKETS",
- "READ_TENANT",
- "MANAGE_PROFILES"
], - "tenant": "*"
}
], - "expiresOn": 1704067200000,
- "id": "2ba3ac10-c43e-11e3-9c1a-0800200c9a66"
}
]
Deletes an access token
id required | string Example: a3f1a69c-3a7d-4b28-a944-61a7dc6877b8 The ID to be deleted |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
The access token
application | string |
master | boolean |
Array of objects | |
expiresOn | integer |
id | string |
{- "application": "sample-app",
- "master": false,
- "tenantPermissions": [
- {
- "allowedActions": [
- "MANAGE_TICKETS",
- "READ_TENANT",
- "MANAGE_PROFILES"
], - "tenant": "sample-tenant"
}
], - "expiresOn": 1704067200000
}
{- "message": "Internal Server Error"
}
Creates the given tenant
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
The tenant to be created
name | string |
verifyNewProfiles | boolean |
ssoEnabled | boolean |
availableRoles | Array of strings |
Array of objects (ProfileTenantAttribute) | |
id | string |
{- "name": "sample-tenant",
- "verifyNewProfiles": false,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}
]
}
{- "name": "sample-tenant",
- "verifyNewProfiles": false,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Returns a tenant.
name required | string Example: sample-tenant The tenant's name |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "name": "sample-tenant",
- "verifyNewProfiles": false,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "ssoEnabled": false,
- "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Updates the given tenant
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
The updates to tenant
name | string |
verifyNewProfiles | boolean |
ssoEnabled | boolean |
availableRoles | Array of strings |
Array of objects (ProfileTenantAttribute) | |
id | string |
{- "name": "sample-tenant",
- "verifyNewProfiles": false,
- "ssoEnable": true,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}
]
}
{- "name": "sample-tenant",
- "verifyNewProfiles": false,
- "ssoEnabled": true,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Deletes a tenant
name required | string Example: sample-tenant The tenant's name |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "message": "Internal Server Error"
}
Returns a list with all the tenants.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
[- {
- "name": "default",
- "verifyNewProfiles": false,
- "availableRoles": [
- "SOCIAL_SUPERADMIN",
- "PROFILE_ADMIN",
- "PROFILE_SUPERADMIN",
- "PROFILE_TENANT_ADMIN"
], - "ssoEnabled": false,
- "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "displayName",
- "metadata": [
- {
- "label": "Display Name",
- "type": "TEXT",
- "displayOrder": 2
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "socialContexts",
- "metadata": [
- {
- "label": "Social Contexts",
- "type": "COMPLEX",
- "displayOrder": 5
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926f6c524d9aaad9804a401"
}, - {
- "name": "sample-tenant",
- "verifyNewProfiles": false,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "ssoEnabled": false,
- "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
]
Sets if new profiles for the specified tenant should be verified or not.
name required | string Example: sample-tenant The tenant's name |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
verify required | string Example: verify=true True to verify new profiles through email, false otherwise |
{- "name": "sample-tenant",
- "verifyNewProfiles": true,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "ssoEnabled": false,
- "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Adds the given roles to the specified tenant.
name required | string Example: sample-tenant The tenant's name |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
role required | string Example: role=APP_TEST,APP_REPORT The roles to add |
{- "name": "sample-tenant",
- "verifyNewProfiles": true,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER",
- "APP_TEST",
- "APP_REPORT"
], - "ssoEnabled": false,
- "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Removes the given roles to the specified tenant.
name required | string Example: sample-tenant The tenant's name |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
role required | string Example: role=APP_TEST,APP_REPORT The roles to add |
{- "name": "sample-tenant",
- "verifyNewProfiles": true,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "ssoEnabled": false,
- "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Adds the given attribute definitions to the specified tenant.
name required | string Example: sample-tenant The tenant's name |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
The attribute(s) to be added
name | string |
object | |
Array of objects | |
defaultValue | object |
{- "name": "Nickname",
- "metadata": [
- {
- "label": "Nickname",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
{- "name": "sample-tenant",
- "verifyNewProfiles": true,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "ssoEnabled": false,
- "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "Nickname",
- "metadata": [
- {
- "label": "Nickname",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Updates the given attribute definitions of the specified tenant.
name required | string Example: sample-tenant The tenant's name |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
The attribute(s) to be updated
name | string |
object | |
Array of objects | |
defaultValue | object |
{- "name": "Nickname",
- "metadata": [
- {
- "label": "Nickname",
- "type": "TEXT",
- "displayOrder": 10
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
{- "name": "sample-tenant",
- "verifyNewProfiles": true,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "ssoEnabled": false,
- "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}, - {
- "name": "Nickname",
- "metadata": [
- {
- "label": "Nickname",
- "type": "TEXT",
- "displayOrder": 10
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
], - "defaultValue": null
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Removes the given attribute definitions from the specified tenant.
name required | string Example: sample-tenant The tenant's name |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
attributeName required | string Example: attributeName=nickname The name of the attributes whose definitions should be removed (the parameter can be repeated) |
{- "name": "sample-tenant",
- "verifyNewProfiles": false,
- "availableRoles": [
- "APP_ADMIN",
- "APP_USER"
], - "attributeDefinitions": [
- {
- "name": "firstName",
- "metadata": [
- {
- "label": "First Name",
- "type": "TEXT",
- "displayOrder": 0
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}, - {
- "name": "lastName",
- "metadata": [
- {
- "label": "Last Name",
- "type": "TEXT",
- "displayOrder": 1
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}, - {
- "name": "avatarLink",
- "metadata": [
- {
- "label": "Avatar Link",
- "type": "TEXT",
- "displayOrder": 3
}
], - "permissions": [
- {
- "application": "*",
- "allowedActions": [
- "*"
]
}
]
}
], - "id": "5926ee77d4c6ad51e5e44f45"
}
Creates a new profile for a specific tenant.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The name of the tenant to add the profile to. |
username required | string Example: username=john.doe The profile’s username. |
password | string Example: password=passw0rd The profile’s password. |
email required | string Example: email=john.doe@example.com The profile’s email. |
enabled required | string If the profile should be enabled or not. |
role | string The profile’s roles. |
attributes | string Example: firstName=John&lastName=Doe The additional attributes to add to the profile (specify a JSON string) |
verificationUrl | string Example: verificationUrl=verificationUrl The URL (sans token) the user needs to go in case it needs to verify the created profile (verification depends on tenant) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592715d4d4c650e226b03b62"
}
Updates the profile’s info.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
id | string Example: id=592887d7d4c650213cc2f400 The profile's id. |
username required | string Example: username=john.doe The new username for the profile. |
password | string Example: password=passw0rd The new password for the profile. |
email required | string Example: email=john.doe@example.com The new email for the profile. |
enabled required | string If the profile should be enabled or not. |
role | string The new roles for the profile. |
attributes | string Example: firstName=John&lastName=Doe The attributes to update (specify a JSON string) |
attributesToReturn | string Example: attributesToReturn=firstName,lastName The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [
- "APP_TEST",
- "APP_REPORT"
], - "attributes": {
- "firstName": "John",
- "lastName": "Doe"
}, - "id": "592887d7d4c650213cc2f400"
}
Sets the profile as verified if the verification token is valid.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
verificationTokenId | string Example: verificationTokenId=055d58c4-fabb-44da-96eb-261e24e1d0c9 The verification token ID. |
attributesToReturn | string Example: attributesToReturn=firstName,lastName The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592887d7d4c650213cc2f400"
}
Enables a profile.
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
attributesToReturn | string Example: attributesToReturn=firstName,lastName The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592887d7d4c650213cc2f400"
}
Disables a profile.
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
attributesToReturn | string Example: attributesToReturn=firstName,lastName The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592887d7d4c650213cc2f400"
}
Assign roles to a profile.
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
roles | string Example: roles=APP_TEST,APP_REPORT The roles to assign |
attributesToReturn | string Example: attributesToReturn=firstName,lastName The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [
- "APP_TEST",
- "APP_REPORT"
], - "attributes": { },
- "id": "592715d4d4c650e226b03b62"
}
Remove assigned roles from a profile.
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
roles | string Example: roles=APP_TEST,APP_REPORT The roles to remove |
attributesToReturn | string Example: attributesToReturn=firstName,lastName The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592715d4d4c650e226b03b62"
}
Returns the attributes of a profile.
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
attributesToReturn | string Example: attributesToReturn=firstName,lastName The name of the attributes to return (don't specify to return all) |
{- "firstName": "John",
- "lastName": "Doe"
}
Updates the attributes of a profile.
NOTE: The specified attributes will be merged with existing attributes.
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
The attribute(s) to be updated
property name* additional property | string |
{- "avatarLink": "/static-assets/images/avatar.png"
}
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [
- "APP_TEST",
- "APP_REPORT"
], - "attributes": {
- "firstName": "John",
- "lastName": "Doe",
- "avatarLink": "/static-assets/images/avatar.png"
}, - "id": "592887d7d4c650213cc2f400"
}
Removes a list of attributes of a profile
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
attributesName | string Example: attributesName=avatarLink The name of the attributes to remove |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
The attribute(s) to be updated
property name* additional property | string |
{- "avatarLink": "/static-assets/images/avatar.png"
}
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [
- "APP_TEST",
- "APP_REPORT"
], - "attributes": {
- "firstName": "John",
- "lastName": "Doe"
}, - "id": "592887d7d4c650213cc2f400"
}
Deletes a profile
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "message": "Internal Server Error"
}
Returns the single profile that matches the specified query
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The tenant's name |
query | string Example: query=%7B%20%22username%22%3A%20%22john.doe%22%20%7D The Mongo query used to search for the profiles |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592887d7d4c650213cc2f400"
}
Returns the profile for a specified ID.
id required | string Example: 592715d4d4c650e226b03b62 The profile’s ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
attributesToReturn | string Example: attributesToReturn=firstName,lastName The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592887d7d4c650213cc2f400"
}
Returns the user for the specified tenant and username.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The tenant's name |
username required | string Example: username=john.doe The profile's username |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592887d7d4c650213cc2f400"
}
Returns the profile for the specified ticket.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
ticketId required | string Example: ticketId=592887d7d4c650213cc2f400 The ID ticket of the authenticated profile |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "592887d7d4c650213cc2f400"
}
Returns the number of profiles for the specified tenant.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The tenant's name |
1
Returns the number of profiles that match the query for the specified tenant.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The tenant's name |
query | string Example: query=%7B%20%22username%22%3A%20%22john.doe%22%20%7D The Mongo query used to search for the profiles. |
1
Returns the profiles that match the specified query.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The tenant's name |
query | string Example: query=%7B%20%22username%22%3A%20%22john.doe%22%20%7D The Mongo query used to search for the profiles. |
sortBy | string Profile attribute to sort the list by |
sortOrder | string The sort order (either ASC or DESC) |
start | string From the entire list of results, the position where the actual results should start (useful for pagination) |
count | string The number of profiles to return |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
[- {
- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495748091232,
- "lastModified": 1495748091232,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "59274dfbd4c650e226b03b65"
}
]
Returns a list of profiles for the specified IDs.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
id required | string Example: id=59284659d4c650213cc2f3fc,59284659d4c650213cc2f3ff The IDs of the profiles to look for |
sortBy | string Profile attribute to sort the list by |
sortOrder | string The sort order (either ASC or DESC) |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
[- {
- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495748091232,
- "lastModified": 1495748091232,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "59274dfbd4c650e226b03b65"
}
]
Returns a range of profiles for the specified tenant.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The tenant's name |
sortBy | string Profile attribute to sort the list by |
sortOrder | string The sort order (either ASC or DESC) |
start | string From the entire list of results, the position where the actual results should start (useful for pagination) |
count | string The number of profiles to return |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
[- {
- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495748091232,
- "lastModified": 1495748091232,
- "tenant": "sample-tenant",
- "roles": [ ],
- "attributes": { },
- "id": "59274dfbd4c650e226b03b65"
}
]
Returns a list of profiles for a specific role and tenant.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The tenant's name |
sortBy | string Profile attribute to sort the list by |
sortOrder | string The sort order (either ASC or DESC) |
role required | string Example: role=APP_TEST The role's name |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
[- {
- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495748091232,
- "lastModified": 1495748091232,
- "tenant": "sample-tenant",
- "roles": [
- "APP_TEST",
- "APP_REPORT"
], - "attributes": { },
- "id": "59274dfbd4c650e226b03b65"
}
]
Returns the list of profiles that have the given attribute with the given value.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=sample-tenant The tenant's name |
sortBy | string Profile attribute to sort the list by |
sortOrder | string The sort order (either ASC or DESC) |
attributeName required | string Example: attributeName=lastName The name of the attribute the profiles must have |
attributeValue required | string Example: attributeValue=Doe The value of the attribute the profiles must have |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
[- {
- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495748091232,
- "lastModified": 1495748091232,
- "tenant": "sample-tenant",
- "roles": [
- "APP_TEST",
- "APP_REPORT"
], - "attributes": {
- "firstName": "John",
- "lastName": "Doe"
}, - "id": "59274dfbd4c650e226b03b65"
}
]
Sends an email to the profile’s user to indicate that the password needs to be reset.
id required | string Example: 59284659d4c650213cc2f3fc The profile's ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
resetPasswordUrl required | string Example: resetPasswordUrl=http://example.com The base URL to use to build the final URL the profile will use to reset their password |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [
- "APP_TEST",
- "APP_REPORT"
], - "attributes": { },
- "id": "59284659d4c650213cc2f3fc"
}
Resets a profile’s password.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
resetTokenId required | string Example: resetTokenId=a2be0e86-7c71-4edf-aed9-6b00c0c60c33 The reset token ID |
newPassword required | string Example: newPassword=test123 The new password |
attributesToReturn | string The name of the attributes to return (don't specify to return all) |
{- "username": "john.doe",
- "email": "john.doe@example.com",
- "verified": false,
- "enabled": false,
- "createdOn": 1495733716728,
- "lastModified": 1495733716728,
- "tenant": "sample-tenant",
- "roles": [
- "APP_TEST",
- "APP_REPORT"
], - "attributes": { },
- "id": "59284659d4c650213cc2f3fc"
}
Creates a token that can be sent to the user in an email as a link.
Note:
After the user clicks the link, the token then can be passed to /verify or /change_password to verify user requesting the token.
id required | string Example: 592715d4d4c650e226b03b62 The profile ID of the user |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "tenant": "sample-tenant",
- "profileId": "592715d4d4c650e226b03b62",
- "timestamp": 1495746285875,
- "id": "055d58c4-fabb-44da-96eb-261e24e1d0c9"
}
Returns the verification token that corresponds to the given ID.
id required | string Example: de60f56d-3a4b-4dec-b798-fb22b2964c14 The token ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "tenant": "sample-tenant",
- "profileId": "592715d4d4c650e226b03b62",
- "timestamp": 1495746285875,
- "id": "de60f56d-3a4b-4dec-b798-fb22b2964c14"
}
Deletes a verification token when it’s not needed anymore.
Note:
Not necessary to call if /verify or /change_password were called, since they already delete the token.
id required | string Example: de60f56d-3a4b-4dec-b798-fb22b2964c14 The token ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "message": "Internal Server Error"
}
Upload a attachment to the specified profile.
Note:
If the mime type of the attachment is not on the valid list will fail.
id required | string Example: 59284659d4c650213cc2f3fc The profile's ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
attachment | string <binary> File to be uploaded. |
{- "md5": "498a1e16be56873ef53a1a61295d1781",
- "contentType": "image/jpeg",
- "fileSize": "22.6 KB",
- "fileName": "picture1",
- "fileSizeBytes": 23193,
- "id": "59285cd3d4c650213cc2f3fd"
}
Gets the requested attachment of the given profile.
id required | string Example: 59284659d4c650213cc2f3fc The profile's ID |
attachmentName required | string Example: picture1 Name of the attachment to get |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "message": "Internal Server Error"
}
Gets all attachments for the given profile.
id required | string Example: 59284659d4c650213cc2f3fc The profile's ID |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "attachments": [
- {
- "md5": "498a1e16be56873ef53a1a61295d1781",
- "contentType": "image/jpeg",
- "fileSize": "22.6 KB",
- "fileName": "picture1",
- "fileSizeBytes": 23193,
- "id": "59285cd3d4c650213cc2f3fd"
}
]
}
Returns the details for a given attachment in a profile.
id required | string Example: 59284659d4c650213cc2f3fc The profile's ID |
attachmentName required | string Example: picture1 Name of the attachment to get |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "md5": "498a1e16be56873ef53a1a61295d1781",
- "contentType": "image/jpeg",
- "fileSize": "22.6 KB",
- "fileName": "picture1",
- "fileSizeBytes": 23193,
- "id": "59285cd3d4c650213cc2f3fd"
}
Authenticates the user, and returns a ticket identifying the authentication.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
tenantName required | string Example: tenantName=default The tenant's name |
username required | string Example: username=admin The username |
password required | string Example: password=admin The password |
{- "tenant": "default",
- "profileId": "5925a68def86951f895cf497",
- "lastRequestedTime": 1495733716728,
- "id": "59284659d4c650213cc2f3fc"
}
Creates a new ticket for the specified profile.
Note:
This method should only be used when actual authentication is done through other means (like when authenticating through Facebook or Twitter) different than profile.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
profileId required | string Example: profileId=5925a68def86951f895cf497 The ID of the profile |
{- "tenant": "default",
- "profileId": "5925a68def86951f895cf497",
- "lastRequestedTime": 1495733716728,
- "id": "7f036af3-1ab9-4791-b615-ecaece3f0010"
}
Returns the ticket info for the given ticket ID.
ticketId required | string Example: b4d44030-d0af-11e3-9c1a-0800200c9a66 The ID of the ticket |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "tenant": "default",
- "profileId": "5925a68def86951f895cf497",
- "lastRequestedTime": 1495733716728,
- "id": "2e911e0b-ac47-423e-9174-4e8896f1b387"
}
Invalidates the given ticket.
ticketId required | string Example: b4d44030-d0af-11e3-9c1a-0800200c9a66 The ID of the ticket |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "tenant": "default",
- "profileId": "5925a68def86951f895cf497",
- "lastRequestedTime": 1495733716728,
- "id": "2e911e0b-ac47-423e-9174-4e8896f1b387"
}
Creates a persistent login, used for remember me functionality.
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
profileId required | string Example: profileId=5925a68def86951f895cf497 The ID of the profile |
{- "tenant": "default",
- "profileId": "5925a68def86951f895cf497",
- "timestamp": 1495733716728,
- "id": "2e911e0b-ac47-423e-9174-4e8896f1b387",
- "token": "adf88dca-4960-474c-be63-c8c5e3bedaa7"
}
Returns the persistent login info for the given ID.
id required | string Example: b68c0013-d7b2-4004-8463-d7ba03e15d94 The ID of the persistent login |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "tenant": "default",
- "profileId": "5925a68def86951f895cf497",
- "timestamp": 1495733716728,
- "id": "b68c0013-d7b2-4004-8463-d7ba03e15d94",
- "token": "adf88dca-4960-474c-be63-c8c5e3bedaa7"
}
Refreshes the token of the specified persistent login.
id required | string Example: b68c0013-d7b2-4004-8463-d7ba03e15d94 The ID of the persistent login |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "tenant": "default",
- "profileId": "5925a68def86951f895cf497",
- "timestamp": 1495733716728,
- "id": "b68c0013-d7b2-4004-8463-d7ba03e15d94",
- "token": "f390e222-c844-44a2-ad38-afa471527101"
}
Deletes a persistent login.
id required | string Example: b68c0013-d7b2-4004-8463-d7ba03e15d94 The ID of the persistent login |
accessTokenId required | string Example: accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d The access token ID of the application making the call |
{- "message": "Internal Server Error"
}
Returns the Crafter Profile JVM memory details.
token required | string Example: token=defaultManagementToken The authorization token. |
{- "totalJvmMemory": 2017984512,
- "freeJvmMemory": 1113921056,
- "maxJvmMemory": 3817865216,
- "totalOsMemory": 17179869184,
- "freeOsMemory": 2669301760,
- "totalSwapMemory": 2147483648,
- "freeSwapMemory": 1026555904
}
Returns the Crafter Profile JVM version details.
token required | string Example: token=defaultManagementToken The authorization token. |
{- "packageName": "Crafter Profile",
- "packageVersion": "3.1.0-SNAPSHOT",
- "packageBuild": "a68f1ff7ad84d5ecbeaa008f392e4cef0ca02f41",
- "packageBuildDate": "2019-03-07T21:03:05.422Z",
- "osName": "Mac OS X",
- "osVersion": "10.13.6",
- "osArch": "x86_64",
- "javaVersion": "1.8",
- "javaVendor": "Oracle Corporation",
- "javaVm": "Java HotSpot(TM) 64-Bit Server VM"
}