Dokumentasi API SunnyDay
  1. Locations
Dokumentasi API SunnyDay
  • Introduction
  • Locations
    • Update Locations
      PUT
    • Get Location Data
      GET
  • Calendars
    • Calendars
      • Get Free Slots
      • Update Calendar
      • Get Calendar
      • Delete Calendar
      • Get Calendars
      • Create Calendar
    • Calendar Groups
      • Get Groups
      • Create Calendar Group
      • Validate group slug
      • Delete Group
      • Update Group
      • Disable Group
    • Calendar Events
      • Create Appointment
      • Update Appointment
      • Get Appointment
      • Get Calendar Events
      • Get Blocked Slots
      • Create Block Slot
      • Update Block Slot
      • Delete Event
    • Appointment Notes
      • Get Notes
      • Create Note
      • Update Note
      • Delete Note
    • Calendar Resources: Rooms & Equipments
      • Get Calendar Resource
      • Update Calendar Resource
      • Delete Calendar Resource
      • List Calendar Resources
      • Create Calendar Resource
    • Calendar Notifications
      • Get notifications
  1. Locations

Update Locations

PUT
https://services.sunnyday.co.id/api/locations/{locationId}
Update Business

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Body Params application/json

Examples

Responses

🟢200200 OK
text/plain
Body

🟠400400 Bad Request
🟠401401 Unauthorized
🟠422422 Unprocessable Content
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://services.sunnyday.co.id/api/locations/5DP4iH6HLkQsiKESj6rh' \
--header 'Version: 2021-07-28' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "Microsoft",
  "phone": "+18832327657",
  "email": "john@deo.com",
  "postalCode": "12312312",
  "website": "www.xyz.com",
  "address": "street adress",
  "state": "new york",
  "city": "new york",
  "country": "us",
  "description": "business description"
}'
Response Response Example
200 - 200 OK
{
  "success": true,
  "buiseness": {
    "id": "63771dcac1116f0e21de8e12",
    "name": "Microsoft",
    "phone": "string",
    "email": "abc@microsoft.com",
    "website": "microsoft.com",
    "address": "string",
    "city": "string",
    "description": "string",
    "state": "string",
    "postalCode": "string",
    "country": "united states",
    "updatedBy": {},
    "locationId": "string",
    "createdBy": {},
    "createdAt": "2024-07-29T15:51:28.071Z",
    "updatedAt": "2024-07-29T15:51:28.071Z"
  }
}
Previous
Locations
Next
Get Location Data
Built with