Endpoint & Available Methods

https://api.sorryapp.com/v1/pages/:page_id/brand

The Brand Object

These are the attributes which represent the object, most of which can be posted too and received in response to the actions.

Attribute Name Description
color_state_ok HEX or RGBa colour used on the page to indicate that things are o.k., probably green.
color_state_warning HEX or RGBa colour used on the page to indicate that things are wrong, probably orange.
color_navbar_background HEX or RGBa colour used on on the navbar at the top of the page.
color_navbar_links HEX or RGBa colour used for the text links in the navbar.
color_navbar_button_background HEX or RGBa colour used for buttons in the navbar.
color_header_background HEX or RGBa colour used as the background on the page header.
color_header_links HEX or RGBa colour used for links in the page header.
color_header_text HEX or RGBa colour used for text in the page header.
color_body_background HEX or RGBa colour used as the background on the page body.
color_body_links HEX or RGBa colour used for links in the page body.
color_body_text HEX or RGBa colour used for text in the page body.
created_at The date/time the record was created.
updated_at The date/time the record was last updated.

Retrieve Brand

GET https://api.sorryapp.com/v1/pages/:page_id/brand

Example Request

curl -X GET https://api.sorryapp.com/v1/pages/:page_id/brand \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

Example Response

{"response":{"color_state_ok":"#e67e22","color_state_warning":"#e67e22","color_navbar_background":"rgba(0,0,0,0.01)","color_navbar_links":"#2c3e50","color_header_background":"#F7F8F9","color_header_links":"#2980b9","color_header_text":"#2c3e50","color_body_background":"#FFFFFF","color_body_links":"#2980b9","color_body_text":"#2c3e50","color_navbar_button_background":"#2980b9","created_at":"2016-02-09 14:39:21 +0000","updated_at":"2016-02-09 14:39:21 +0000"}}

Update Brand

PATCH https://api.sorryapp.com/v1/pages/:page_id/brand

Example Request

curl -X PATCH https://api.sorryapp.com/v1/pages/:page_id/brand \
  -d color_state_ok="#e67e22" \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

Example Response

{"response":{"color_state_ok":"#e67e22","color_state_warning":"#e67e22","color_navbar_background":"rgba(0,0,0,0.01)","color_navbar_links":"#2c3e50","color_header_background":"#F7F8F9","color_header_links":"#2980b9","color_header_text":"#2c3e50","color_body_background":"#FFFFFF","color_body_links":"#2980b9","color_body_text":"#2c3e50","color_navbar_button_background":"#2980b9","created_at":"2016-02-09 14:39:21 +0000","updated_at":"2016-02-09 14:39:21 +0000"}}

Delete Brand

DELETE https://api.sorryapp.com/v1/pages/:page_id/brand

Example Request

curl -X DELETE https://api.sorryapp.com/v1/pages/:page_id/brand \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"