1. Activity API
GY Docs
  • Documentation
  • Books API
    • Get Book (Public)
      GET
    • Get Book
      GET
    • List Books by User
      GET
    • Update Book
      PATCH
    • Delete Book
      DELETE
  • Friends API
    • List Friends
      GET
    • Remove Friend
      DELETE
    • Send Friend Request
      POST
    • Manage Friend Request
      POST
    • Get Friend Requests
      GET
  • Profile API
    • List Profiles
      GET
    • List Profiles (Public)
      GET
    • Get Profile
      GET
    • Get Profile (Public)
      GET
    • Update Biography
      PATCH
    • Get Hall of Fame
      GET
    • Add Book to Hall of Fame
      PATCH
    • Delete Book from Hall of Fame
      DELETE
    • Set Quote to Hall of Fame
      PATCH
  • Activity API
    • List Friends Activities
      GET
    • List Activities
      GET
    • Add Activity
      POST
    • React to an Activity
      PATCH
  • Lists API
    • List lists
      GET
    • Get list
      GET
    • Create List
      POST
    • Update List
      PATCH
    • Remove List
      DELETE
    • Save a Book
      POST
    • Update a Book
      PATCH
    • Remove a Book
      DELETE
  • Metadata API
GY AccountsGY Books
Heralds of Chaos
GY AccountsGY Books
Heralds of Chaos
  1. Activity API

Add Activity

POST
https://api.gycoding.com/books/activity
Saves an activity made by a user.

Request

Header Params

Body Params application/jsonRequired

Example
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "message": "string",
    "profileId": "faebe71b-2bf8-4bdb-9b67-258e4d6aa00a",
    "likes": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gycoding.com/books/activity' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "message": "string",
    "profileId": "faebe71b-2bf8-4bdb-9b67-258e4d6aa00a",
    "likes": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "message": "string",
    "profileId": "faebe71b-2bf8-4bdb-9b67-258e4d6aa00a",
    "likes": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ]
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🟠405Method Not Allowed
🔴500Internal Error
Previous
List Activities
Next
React to an Activity
Built with