Download OpenAPI specification:
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| categoryId required | string |
| name required | string |
| activeImageUrl required | string |
| inactiveImageUrl required | string |
| requirement required | string |
| source required | string Value: "academy" |
| status | string or null Enum: "published" "draft" |
| groupId | string or null |
| groupRank | integer or null |
{- "categoryId": "2114e5ac-774f-11ed-b5c8-0242ac120007",
- "name": "Achievement Name",
- "activeImageUrl": "/path/to/active/image.jpg",
- "inactiveImageUrl": "/path/to/inactive/image.jpg",
- "requirement": "Achievement requirement description",
- "source": "academy",
- "status": "published",
- "groupId": "2114e5ac-774f-11ed-b5c8-0242ac120007",
- "groupRank": 1
}{- "data": {
- "type": "achievements",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "categoryId": "02aef76a-a62b-11ec-b909-0242ac120002",
- "category": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "name": "Category Name",
- "sort": 1,
- "createdAt": "2023-10-25 17:27:20",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}, - "name": "Achievement Name",
- "requirement": "Achievement Requirement",
- "source": "Achievement Source",
- "status": "Achievement Status",
- "groupId": "Group123",
- "groupRank": 0,
- "createdAt": "2023-10-25 17:27:20",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
}Fetch a list of achievements with their registrants. Providing admin credentials will return all achievements, otherwise returns only the achievements that are live
| page | number Example: page=1 |
| perPage | number Example: perPage=25 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| X-Username | any |
| X-Password | any |
{- "data": [
- {
- "type": "achievements",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "categoryId": "02aef76a-a62b-11ec-b909-0242ac120002",
- "category": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "name": "Category Name",
- "sort": 1,
- "createdAt": "2023-10-25 17:27:20",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}, - "name": "Achievement Name",
- "requirement": "Achievement Requirement",
- "source": "Achievement Source",
- "status": "Achievement Status",
- "groupId": "Group123",
- "groupRank": 0,
- "createdAt": "2023-10-25 17:27:20",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
], - "meta": {
- "total": 50,
- "count": 10,
- "perPage": 10,
- "currentPage": 1,
- "totalPages": 5
}
}| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| name required | string |
| sort | integer or null |
{- "name": "Category Name",
- "sort": 1
}{- "data": {
- "type": "category",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "name": "Category Name",
- "sort": 1,
- "createdAt": "2023-10-25 17:27:20",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
}Fetch a list of categories with their registrants. Providing admin credentials will return all categories, otherwise returns only the categories that are live
| page | number Example: page=1 |
| perPage | number Example: perPage=25 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
{- "data": [
- {
- "type": "category",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "name": "Category Name",
- "sort": 1,
- "createdAt": "2023-10-25 17:27:20",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
], - "meta": {
- "total": 50,
- "count": 10,
- "perPage": 10,
- "currentPage": 1,
- "totalPages": 5
}
}Fetch a single category by id
| id required | string Example: e4cc5e1a-1240-11eb-9573-0242ac140005 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
{- "data": {
- "type": "category",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "name": "Category Name",
- "sort": 1,
- "createdAt": "2023-10-25 17:27:20",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
}Delete a category by id
| id required | string Example: e4cc5e1a-1240-11eb-9573-0242ac140005 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
{- "errors": [
- {
- "status": 401,
- "title": "Unauthorized",
- "detail": "Only an authorized user may perform this action."
}
]
}Update category by id
| id required | string Example: e4cc5e1a-1240-11eb-9573-0242ac140005 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| name | string or null |
| sort | integer or null |
{- "name": "Updated Category Name",
- "sort": 1
}{- "data": {
- "type": "category",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "name": "Category Name",
- "sort": 1,
- "createdAt": "2023-10-25 17:27:20",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
}| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| event required | string |
| times required | integer |
| targetId | string or null |
| achievementId required | string or null |
| type | string or null Enum: "consecutive" "count" null |
| period | string or null Enum: "daily" null |
{- "event": "Event Name",
- "times": 1,
- "targetId": "2114e5ac-774f-11ed-b5c8-0242ac120007",
- "achievementId": "2114e5ac-774f-11ed-b5c8-0242ac120007",
- "type": "count",
- "period": "daily"
}{- "data": {
- "type": "rules",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "event": "Event Name",
- "times": 1,
- "targetId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "achievementId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "type": "count",
- "period": "daily",
- "createdAt": "2023-10-25T17:27:20Z",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
}Fetch a list of rules with their registrants. Providing admin credentials will return all rules, otherwise returns only the rules that are live
| page | number Example: page=1 |
| perPage | number Example: perPage=25 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
{- "data": [
- {
- "type": "rules",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "event": "Event Name",
- "times": 1,
- "targetId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "achievementId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "type": "count",
- "period": "daily",
- "createdAt": "2023-10-25T17:27:20Z",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
], - "meta": {
- "total": 50,
- "count": 10,
- "perPage": 10,
- "currentPage": 1,
- "totalPages": 5
}
}Fetch a single rule by id
| id required | string Example: e4cc5e1a-1240-11eb-9573-0242ac140005 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
{- "data": {
- "type": "rules",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "event": "Event Name",
- "times": 1,
- "targetId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "achievementId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "type": "count",
- "period": "daily",
- "createdAt": "2023-10-25T17:27:20Z",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
}Delete a rule by id
| id required | string Example: e4cc5e1a-1240-11eb-9573-0242ac140005 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
{- "errors": [
- {
- "status": 401,
- "title": "Unauthorized",
- "detail": "Only an authorized user may perform this action."
}
]
}Update rule by id
| id required | string Example: e4cc5e1a-1240-11eb-9573-0242ac140005 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| event | string |
| times | integer |
| targetId | string or null |
| achievementId | string or null |
| type | string or null Enum: "consecutive" "count" null |
| period | string or null Enum: "daily" null |
{- "event": "Updated Event Name",
- "times": 2,
- "targetId": "2114e5ac-774f-11ed-b5c8-0242ac120007",
- "achievementId": "2114e5ac-774f-11ed-b5c8-0242ac120007",
- "type": "count",
- "period": "daily"
}{- "data": {
- "type": "rules",
- "id": "dc216c00-b988-4c0a-8c14-6261b85e7b29",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "event": "Event Name",
- "times": 1,
- "targetId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "achievementId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "type": "count",
- "period": "daily",
- "createdAt": "2023-10-25T17:27:20Z",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
}| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| achievementId required | string |
{- "achievementId": "2114e5ac-774f-11ed-b5c8-0242ac120007"
}{- "data": {
- "type": "user_achievements",
- "id": "b3a10b98-0e31-45dc-9f2e-ffc8cd83db86",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "userId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "achievementId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "createdAt": "2023-10-25T17:27:20Z",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
}Fetch a list of user achievements with their registrants. Providing admin credentials will return all user achievements, otherwise returns only the user achievements that are live
| page | number Example: page=1 |
| perPage | number Example: perPage=25 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
{- "data": [
- {
- "type": "user_achievements",
- "id": "b3a10b98-0e31-45dc-9f2e-ffc8cd83db86",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "userId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "achievementId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "createdAt": "2023-10-25T17:27:20Z",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
], - "meta": {
- "total": 50,
- "count": 10,
- "perPage": 10,
- "currentPage": 1,
- "totalPages": 5
}
}Delete a user achievement by id
| id required | string Example: e4cc5e1a-1240-11eb-9573-0242ac140005 |
| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
{- "errors": [
- {
- "status": 401,
- "title": "Unauthorized",
- "detail": "Only an authorized user may perform this action."
}
]
}| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| event required | string |
| targetId | string or null |
{- "event": "event.name",
- "targetId": "2114e5ac-774f-11ed-b5c8-0242ac120007"
}{- "data": [
- {
- "type": "user_achievements",
- "id": "b3a10b98-0e31-45dc-9f2e-ffc8cd83db86",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "userId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "achievementId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "createdAt": "2023-10-25T17:27:20Z",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
], - "meta": {
- "total": 50,
- "count": 10,
- "perPage": 10,
- "currentPage": 1,
- "totalPages": 5
}
}| Accept required | string Example: application\json |
| Content-Type required | string Example: application\json |
| X-Username required | string Example: exampleUser@uscca.com |
| X-Password required | string Example: password |
| event required | string |
| count required | integer [ 0 .. 50 ] |
| targetId | string or null |
{- "event": "Admin Event Name",
- "count": 10,
- "targetId": "2114e5ac-774f-11ed-b5c8-0242ac120007"
}{- "data": [
- {
- "type": "user_achievements",
- "id": "b3a10b98-0e31-45dc-9f2e-ffc8cd83db86",
- "attributes": {
- "id": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "userId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "achievementId": "3f9bf760-a62b-11ec-b909-0242ac120002",
- "createdAt": "2023-10-25T17:27:20Z",
- "updatedAt": "2023-10-25 17:27:20",
- "deletedAt": "2023-10-25 17:27:20"
}
}
], - "meta": {
- "total": 50,
- "count": 10,
- "perPage": 10,
- "currentPage": 1,
- "totalPages": 5
}
}