TrackerService_CreateActivity
TrackerService_CreateActivity
Path Parameters
- user string required
The user id.
- tracker string required
The tracker id.
Request Body required
- parent string required
The parent this tracker belongs to.
activity object required
- 200
- default
OK
Schema
- name string required
The id of the activity.
- resource string required
The content whose progress is being tracked.
- platform string
The platform that the user used to consume the resource.
- from int32
Where the activity started within the resource. This value represents the time in seconds within an episode or the page number within a graphic novel or light novel chapter.
- to int32
Where the activity ended within the resource. This value represents the time in seconds within an episode or the page number within a graphic novel or light novel chapter.
- startTime date-time
When this activity started.
- endTime date-time
When this activity ended.
Default error response
Schema
- code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
- message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
POST /v1alpha1/users/:user/trackers/:tracker/activities
curl -L -X POST 'https://tracker.animeapis.com/v1alpha1/users/:user/trackers/:tracker/activities' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"parent": "string",
"activity": {
"name": "string",
"resource": "string",
"platform": "string",
"from": 0,
"to": 0,
"startTime": "string",
"endTime": "string"
}
}'
curl -L -X POST 'https://tracker.animeapis.com/v1alpha1/users/:user/trackers/:tracker/activities' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"parent": "string",
"activity": {
"name": "string",
"resource": "string",
"platform": "string",
"from": 0,
"to": 0,
"startTime": "string",
"endTime": "string"
}
}'
curl -L -X POST 'https://tracker.animeapis.com/v1alpha1/users/:user/trackers/:tracker/activities' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"parent": "string",
"activity": {
"name": "string",
"resource": "string",
"platform": "string",
"from": 0,
"to": 0,
"startTime": "string",
"endTime": "string"
}
}'
curl -L -X POST 'https://tracker.animeapis.com/v1alpha1/users/:user/trackers/:tracker/activities' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"parent": "string",
"activity": {
"name": "string",
"resource": "string",
"platform": "string",
"from": 0,
"to": 0,
"startTime": "string",
"endTime": "string"
}
}'