Root
Say hello to our api (Public)
get /
HTTP status code 200
Body
Type: application/xml
Example:
<?xml version="1.0" encoding="UTF-8"?>
<api>
<name>Creads Partners API</name>
<say>hello!</say>
<version>1.0.0-beta7</version>
</api>
Type: application/json
Example:
{
"name": "Creads Partners API"
"say": "hello!",
"version": "1.0.0-beta7
}
Batch
Batch request to execute several actions
post /batch
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
Example:
[
{
"relative_url": "/v1/projects",
"method": "POST",
"body": "{\"title\":\"My title\"}"
},
{
"relative_url": "/v1/projects/1234567891012",
"method": "GET"
}
]
Categories
Collection of product categories. A product is associated to only one category. Will only return categories that have product you are allowed to order.
Get a collection of categories.
get /categories
Get a collection of categories.
Query Parameters
-
orderBy:
(string - default: gid)
Order by field: weight
-
sort:
(one of desc, asc - default: desc)
Order
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: *title, description, gid *
Example:
["title", "==", "Web & Mobile"]
Products
Searchable and pageable collection of Products. As standard user you can only see enabled products for organization you are member of, As manager user, you can only see enabled products for organization you are manager of. And you can not create, update or delete a product.
Get a collection of products.
get /products
Get a collection of products.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
orderBy:
(string - default: gid)
Order by field: title, category.title, weight
-
sort:
(one of desc, asc - default: desc)
Order
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: *category.id, organizations.gid *
Example:
["category.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
-
search:
required (string)
A string containing terms or words to look for
Count number of products in collection
Count items in collection of total_count.
get /products/total_count
Count items in collection of total_count.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: *category.id, organizations.gid *
Example:
["category.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
HTTP status code 200
Body
Type: application/json
Example:
{
"total_count": 3
}
HTTP status code 403
Your are not authorized to count items in collection of total_count
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to count items in collection of total_count"
}
}
Get product.
get /products/{gid}
Get product.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559befe84f871",
"title": "Détourage photo",
"available_options": {
"mode": {
"type": "string",
"enum": ["solo", "multi"],
"default": "solo",
"required": true
},
"due": {
"type": "integer",
"enum": [1, 2, 7, 20],
"default": 7,
"required": true
},
"quantity": {
"type": "integer",
"default": 1,
"required": false
},
"skill": {
"type": "string",
"enum": ["execution", "conception"],
"default": "execution",
"required": true
},
},
"additional_meta" : {
"solo_mode_meta": {
"description": "",
"brief_template": "Décrivez votre besoin, le contexte du projet, les livrables attendus..."
},
"multi_mode_meta": {
"description": "",
"brief_template": "Décrivez votre besoin, le contexte du projet, les livrables attendus..."
}
},
"category": {
"gid": "559befe84f871",
"title": "lorem ipsum"
},
"interface": "default",
"synonyms": [
"Detourage photographie",
"Montage de photo",
"Incrustation photo"
]
}
HTTP status code 403
Your are not authorized to see this product
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this product"
}
}
HTTP status code 404
Could not find this product
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this product"
}
}
Projects
Searchable, pageable and orderable collection of projets. As standard user you can only see your own projects. As manager user, you can only see every projets for organizations you are manager of.
Get a collection of projects.
Create a new project
get /projects
Get a collection of projects.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid, owner.gid, status, created_at, gid, short_code
Example:
["owner.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
-
orderBy:
(string - default: gid)
Order by field: created_at, modified_at, title, due_date
-
sort:
(one of desc, asc - default: desc)
Order
-
offset:
(integer)
Skip over a number of elements by specifying an offset value for the query
Example:
20
-
limit:
(integer - default: 10)
Limit the number of elements on the response
Example:
80
post /projects
Create a new project
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
HTTP status code 201
Headers
-
Location:
required (string)
Location of the newly created project
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to create project
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to create project"
}
}
Count number of projects in collection
Count items in collection of total_count.
get /projects/total_count
Count items in collection of total_count.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: owner, status
Example:
["owner", "==", "a615569f1e949b647ba10ed0adca790c"]
HTTP status code 200
Body
Type: application/json
Example:
{
"total_count": 3
}
HTTP status code 403
Your are not authorized to count items in collection of total_count
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to count items in collection of total_count"
}
}
A project (submitted by partner to workers Available status :
- draft
- canceled
- in_progress
- finished (receipt need to be generated, user can give reviews on worker, waiting for sources, sources are downloadable)
- paid
Get project.
Delete a project. A project can be only deleted if its status is "draft"
Update a project. A project can be only updated if its status is "draft". Product can not be changed.
get /projects/{gid}
Get project.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559befeeab59f",
"short_code": "Zd85moz",
"href": "/project/559befeeab59f",
"created_at": "2014-09-08T22:47:31-07:00",
"modified_at": null,
"published_at": "2014-09-09T22:47:31-07:00",
"started_at": "2014-09-09T22:47:31-07:00",
"status": "in_progress",
"state": "published",
"title": "Lorem ipsum dolor",
"description": "<p>lorem ipsum</p> <strong>bold</strong> <em>emphsize</em> ",
"price": {
"amount": 1020.00,
"currency": "EUR"
},
"options": {
"mode": "solo",
"due": 5,
"quantity": 4
},
"product": {
"gid": "559beff50d074",
"title": "Logo"
},
"owner": {
"gid": "559beff95ef1f",
"firstname": "John",
"lastname": "Doe"
},
"organization": {
"gid": "559beffe2c12c"
},
"brief_files": [
{
"url": "https://cre.ads/43348e3ea6-1.zip",
},
{
"url": "https://cre.ads/43348e3ea6-2.zip",
},
{
"url": "https://cre.ads/43348e3ea6-3.zip"
}
],
"source_files": [
{
"url": "https://cre.ads/43348e3ea6-1.zip",
},
{
"url": "https://cre.ads/43348e3ea6-2.zip",
},
{
"url": "https://cre.ads/43348e3ea6-3.zip"
}
],
"deadline_at": "2014-09-14T22:47:31-07:00"
}
HTTP status code 403
Your are not authorized to see this project
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this project"
}
}
HTTP status code 404
Could not find this project
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this project"
}
}
delete /projects/{gid}
Delete a project. A project can be only deleted if its status is "draft"
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 204
projects deleted
HTTP status code 403
Your are not authorized to delete this project
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to delete this projects"
}
}
HTTP status code 404
Could not find this project
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not this project"
}
}
put /projects/{gid}
Update a project. A project can be only updated if its status is "draft". Product can not be changed.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
HTTP status code 204
projects updated
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to update this projects
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to update this projects"
}
}
HTTP status code 404
Could not find this projects
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not this projects"
}
}
Get the list of user with whom a given project is shared.
Share a project with a given user.
get /projects/{gid}/shared_with
Get the list of user with whom a given project is shared.
URI Parameters
- gid: required (string)
post /projects/{gid}/shared_with
Share a project with a given user.
URI Parameters
- gid: required (string)
Body
Type: application/json
HTTP status code 201
Headers
-
Location:
required (string)
Location of the newly created shared_with
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to create shared_with
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to create shared_with"
}
}
Unshare a project with a user.
delete /projects/{gid}/shared_with/{userGid}
Unshare a project with a user.
URI Parameters
- gid: required (string)
- userGid: required (string)
Get a collection of brief_files.
Add a file as an attachment to the project
get /projects/{gid}/brief_files
Get a collection of brief_files.
URI Parameters
- gid: required (string)
post /projects/{gid}/brief_files
Add a file as an attachment to the project
URI Parameters
- gid: required (string)
Body
Type: application/json
HTTP status code 201
Headers
-
Location:
required (string)
Location of the newly created brief_file
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to create brief_file
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to create brief_file"
}
}
Remove a file from the attachments of the project
delete /projects/{gid}/brief_files/{filepath}
Remove a file from the attachments of the project
URI Parameters
- gid: required (string)
- filepath: required (string)
Get the list of message posted inside a project.
Post a new message to a project
get /projects/{gid}/messages
Get the list of message posted inside a project.
URI Parameters
- gid: required (string)
post /projects/{gid}/messages
Post a new message to a project
URI Parameters
- gid: required (string)
Body
Type: application/json
HTTP status code 201
Headers
-
Location:
required (string)
Location of the newly created message
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to create message
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to create message"
}
}
Get stats about given project
get /projects/{gid}/stat
Get stats about given project
URI Parameters
- gid: required (string)
Get list of starred files among the project
get /projects/{gid}/files
Get list of starred files among the project
URI Parameters
- gid: required (string)
Prices
Price resources for products in given organization.
Get a collection of prices.
get /prices
Get a collection of prices.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid, product.gid
Example:
["organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
Count number of prices in collection
Count items in collection of total_count.
get /prices/total_count
Count items in collection of total_count.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid, product.gid
Example:
["organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
HTTP status code 200
Body
Type: application/json
Example:
{
"total_count": 3
}
HTTP status code 403
Your are not authorized to count items in collection of total_count
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to count items in collection of total_count"
}
}
Get price corresponding to project set (product, organization and options). It's an alias to search on /prices.
get /prices/for
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
product.gid:
required (string)
Current product gid
Example:
a615569f1e949b647ba10ed0adca790c
-
organization.gid:
required (string)
Current organization gid
Example:
a615569f1e949b647ba10ed0adca790c
-
options.due:
required (integer)
Choosen option value
Example:
1
-
options.mode:
required (string)
Choosen option value
Example:
solo
HTTP status code 200
Body
Type: application/json
Example:
{
"product": {
"gid": "774ad87f6fe7c9aa1eacc591e3307746"
},
"options": {
"mode": "solo",
"due": 7
},
"amount": 1020.00,
"currency": "EUR"
}
Price for a product
Get price.
get /prices/{gid}
Get price.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559befdd6cdd3",
"created_at": "2014-09-08T22:47:31-07:00",
"updated_at": null,
"organization": {
"gid": "559bf04ba85a5",
"name": "Creads",
"href": "/organization/559bf04ba85a5"
},
"product": {
"gid": "559befe249b38"
},
"options": {
"mode": "solo",
"due": 7
},
"amount": 1020.00,
"currency": "EUR"
}
HTTP status code 403
Your are not authorized to see this price
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this price"
}
}
HTTP status code 404
Could not find this price
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this price"
}
}
Works
Searchable, pageable and orderable collection of works. A standard user can not create a new work and can only see works related to its own projects.
Get a collection of works.
get /works
Get a collection of works.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: worker.gid, project.gid, won_at, parent.gid, parent, gid, created_at
Example:
[["project.gid", "==", "a615569f1e949b647ba10ed0adca790c"], ["won_at", "!=", null], ["parent", "==", null]]
-
orderBy:
(string - default: gid)
Order by field: created_at
-
sort:
(one of desc, asc - default: desc)
Order
-
offset:
(integer)
Skip over a number of elements by specifying an offset value for the query
Example:
20
-
limit:
(integer - default: 10)
Limit the number of elements on the response
Example:
80
Work done on a project. A standard user can not update or delete a work.
Get work.
get /works/{gid}
Get work.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559bf0527764e",
"created_at": "2014-09-08T22:47:31-07:00",
"won_at": null,
"description" : "Quisque ac ligula faucibus, pretium orci ac, porta velit. Cras ante enim, lacinia a commodo ut, iaculis et sem. Sed faucibus leo id justo imperdiet sollicitudin. Nunc tempor et risus vitae pulvinar. Quisque sed lacinia erat, vitae efficitur turpis. Fusce vel mollis tortor. Vivamus fermentum lacus in ultricies euismod.",
"image": "https://cre.ads/43348e3ea6-1.jpg",
"content": "Cogito Ergo Sum",
"worker": {
"gid": "559bf0683e9a5"
},
"project": {
"gid": "559bf06dc73e8",
"title": "lorem ipsum dolor"
}
}
HTTP status code 403
Your are not authorized to see this work
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this work"
}
}
HTTP status code 404
Could not find this work
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this work"
}
}
Workers
Searchable collection of workers.
Get a collection of workers.
get /workers
Get a collection of workers.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: works.project.gid
Example:
[["works.project.gid", "==", "a615569f1e949b647ba10ed0adca790c"]]
Get worker.
get /workers/{gid}
Get worker.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559bf0683e9a5",
"created_at": "2014-09-08T22:47:31-07:00",
"creads_id" : "4",
"firstname" : "Jack",
"lastname" : "D.",
"full_name" : "Jack D.",
"avatar": "https://cre.ads/43348e3ea6-1.jpg"
}
HTTP status code 403
Your are not authorized to see this worker
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this worker"
}
}
HTTP status code 404
Could not find this worker
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this worker"
}
}
Reviews
review resource collection. A standard user can only see review on its own project. A standard user can only create review for its own project.
Get a collection of reviews.
Create a new review
get /reviews
Get a collection of reviews.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: worker.gid, project.gid
Example:
["worker.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
-
offset:
(integer)
Skip over a number of elements by specifying an offset value for the query
Example:
20
-
limit:
(integer - default: 10)
Limit the number of elements on the response
Example:
80
post /reviews
Create a new review
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
HTTP status code 201
Headers
-
Location:
required (string)
Location of the newly created review
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to create review
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to create review"
}
}
review on a worker for a given project. A standard user can only see review on its own project. A standard user can not update or delete a review.
Get review.
get /reviews/{gid}
Get review.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559bef51dbe8e",
"quality": 4,
"reactivity": 5,
"communicativeness": 2,
"work_with_again": 1,
"comment": "did a great work on this project! Thanks",
"project": {
"gid": "559bef57975ff",
"href": "/project/559bef57975ff"
},
"worker": {
"gid": "559bef65432d7",
"href": "/project/559bef65432d7"
}
}
HTTP status code 403
Your are not authorized to see this review
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this review"
}
}
HTTP status code 404
Could not find this review
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this review"
}
}
Users
Orderable, Searchable and pageable collection of Users. As standard user, you can only see your user. As manager user, you can see, create, update and delete users for organizations you are manager of.
Get a collection of users.
get /users
Get a collection of users.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: member_of.organization.gid, created_at, modified_at, gid
Example:
["member_of.organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
-
offset:
(integer)
Skip over a number of elements by specifying an offset value for the query
Example:
20
-
limit:
(integer - default: 10)
Limit the number of elements on the response
Example:
80
-
orderBy:
(string - default: gid)
Order by field: created_at, modified_at
-
sort:
(one of desc, asc - default: desc)
Order
Count number of users in collection
Count items in collection of total_count.
get /users/total_count
Count items in collection of total_count.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: member_of.organization.gid, created_at, modified_at
Example:
["member_of.organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
HTTP status code 200
Body
Type: application/json
Example:
{
"total_count": 3
}
HTTP status code 403
Your are not authorized to count items in collection of total_count
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to count items in collection of total_count"
}
}
Get user.
get /users/{gid}
Get user.
URI Parameters
- gid: required (string)
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559bf015e3af0",
"href": "/user/559bf015e3af0",
"created_at": "2014-09-08T22:47:31-08:00",
"modified_at": null,
"firstname": "John",
"lastname": "Doe",
"roles": ["customer"],
"email": "john.doe@gmail.com",
"phone": "+33102030405",
"mobile": "+33602030405",
"locale": "fr_FR",
"member_of": [
{
"organization": {
"gid": "559bf04ba85a5",
"name": "Creads",
"href": "/organization/559bf04ba85a5"
},
"monthly_budget": {
"amount": 2000,
"currency": "EUR"
},
"monthly_spent": {
"amount": 200,
"currency": "EUR"
},
"is_manager": false
}
],
"roles": [
"user"
]
}
HTTP status code 403
Your are not authorized to see this user
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this user"
}
}
HTTP status code 404
Could not find this user
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this user"
}
}
Get a collection of member_of.
get /users/{gid}/member_of
Get a collection of member_of.
URI Parameters
- gid: required (string)
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid
Example:
["organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
Get member_of.
get /users/{gid}/member_of/{orgaGid}
Get member_of.
URI Parameters
- gid: required (string)
- orgaGid: required (string)
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559bf015e3af0",
"organization": {
"gid": "559bf04ba85a5",
"name": "Creads",
"href": "/organization/559bf04ba85a5"
},
"monthly_budget": {
"amount": 2000,
"currency": "EUR"
},
"monthly_spent": {
"amount": 200,
"currency": "EUR",
},
"is_manager": false
}
HTTP status code 403
Your are not authorized to see this member_of
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this member_of"
}
}
HTTP status code 404
Could not find this member_of
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this member_of"
}
}
Invitations
Invitations to create user account or add to organization existing user.
Get a collection of invitations.
Create a new invitation
get /invitations
Get a collection of invitations.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid
Example:
["organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
post /invitations
Create a new invitation
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
HTTP status code 201
Headers
-
Location:
required (string)
Location of the newly created invitation
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to create invitation
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to create invitation"
}
}
A specific invitation
Get invitation.
Delete resource <<resourcePathName>>.
get /invitations/{gid}
Get invitation.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559bef42c09b7",
"created_at": "2014-09-08T22:47:31-08:00",
"modified_at": "2014-09-08T22:47:31-08:00",
"href": "/invitations/559bef42c09b7",
"token": "559bef42c09b7559bef42c09b7559bef42c09b7",
"has_user": false,
"email": "john.doe@test.fr"
}
HTTP status code 403
Your are not authorized to see this invitation
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this invitation"
}
}
HTTP status code 404
Could not find this invitation
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this invitation"
}
}
delete /invitations/{gid}
Delete resource <<resourcePathName>>.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 204
<<resourcePathName>> deleted
HTTP status code 403
Your are not authorized to delete this <<resourcePathName | !singularize>>
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to delete this <<resourcePathName>>"
}
}
HTTP status code 404
Could not find this <<resourcePathName | !singularize>>
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not this <<resourcePathName | !singularize>>"
}
}
Me
Current logged User. Alias for /user/{gid}
Will throw 403 if authenticated with client_creadentials
Get me.
Update current user
get /me
Get me.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
fields:
(string)
If set, the endpoint will only return the requested fields of the entity (plus the generic ones) Comma separated values: field1,field2,field3
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559bf015e3af0",
"href": "/user/559bf015e3af0",
"created_at": "2014-09-08T22:47:31-08:00",
"modified_at": null,
"firstname": "John",
"lastname": "Doe",
"roles": ["customer"],
"email": "john.doe@gmail.com",
"phone": "+33102030405",
"mobile": "+33602030405",
"locale": "fr_FR",
"member_of": [
{
"organization": {
"gid": "559bf04ba85a5",
"name": "Creads",
"href": "/organization/559bf04ba85a5"
},
"monthly_budget": {
"amount": 2000,
"currency": "EUR"
},
"monthly_spent": {
"amount": 200,
"currency": "EUR"
},
"is_manager": false
}
],
"roles": [
"user"
]
}
HTTP status code 403
Your are not authorized to see this me
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this me"
}
}
HTTP status code 404
Could not find this me
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this me"
}
}
put /me
Update current user
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
fields:
(string)
If set, the endpoint will only return the requested fields of the entity (plus the generic ones) Comma separated values: field1,field2,field3
Body
Type: application/json
Alias for /user/{gid}/member_of
Will throw 403 if authenticated with client_creadentials
Get a collection of member_of.
get /me/member_of
Get a collection of member_of.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid
Example:
["organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
Organizations
Searchable and pageable collection of Organizations. As standard or manager user, you can only see your organizations.
Get a collection of organizations.
get /organizations
Get a collection of organizations.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
orderBy:
(string - default: gid)
Order by field: modified_at, name, parent.name
-
sort:
(one of desc, asc - default: desc)
Order
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: products.gid, modified_at
Example:
["products.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
Get organization.
get /organizations/{gid}
Get organization.
URI Parameters
- gid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "559befd82c88b",
"created_at": {
"type": "string",
"format": "date-time",
"readOnly": true,
"required": true
},
"href": {
"type": "string",
"readOnly": true,
"required": true
},
"name": "Creads",
"hostname": "partners-creads.fr",
"vat": "FR09504019662",
"billing_address": {
"division": null,
"address1": "112 Rue de Réaumur",
"address2": null,
"zipcode": "75012",
"city": "Paris",
"state": null,
"country": "FR",
"additional": null,
},
"billing_contact": {
"phone": null,
"email": "contact@email.com"
},
"logo": "https://cre.ads/43348e3ea6-1.jpg"
}
HTTP status code 403
Your are not authorized to see this organization
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this organization"
}
}
HTTP status code 404
Could not find this organization
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this organization"
}
}
Gives order to import prices from Google Spreadsheet if its configured for the organization
get /organizations/{gid}/prices/fetch
Gives order to import prices from Google Spreadsheet if its configured for the organization
URI Parameters
- gid: required (string)
Organizations (shorthand)
Get a collection of member_of.
get /orgs/{orgGid}/member_of
Get a collection of member_of.
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid
Example:
["organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
The payment method associated to the organization
Delete resource payment_source.
Update resource payment_source
Add (or replace) a payment method to the organization
get /orgs/{orgGid}/payment_source
The payment method associated to the organization
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 200
Body
Type: application/json
Example:
{
"gid": "1234567891012",
"created_at": "2018-10-16T22:47:31-08:00",
"modified_at": "2018-10-16T22: 47: 31-08: 00",
"rid": "external_api_source_id",
"reference": "JOEHF9F7DOXAA07F",
"last_digits": "1234"
}
HTTP status code 403
Your are not authorized to see this payment_source
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to see this payment_source"
}
}
HTTP status code 404
Could not find this payment_source
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not find this payment_source"
}
}
delete /orgs/{orgGid}/payment_source
Delete resource payment_source.
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
HTTP status code 204
payment_source deleted
HTTP status code 403
Your are not authorized to delete this payment_source
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to delete this payment_source"
}
}
HTTP status code 404
Could not find this payment_source
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not this payment_source"
}
}
put /orgs/{orgGid}/payment_source
Update resource payment_source
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
HTTP status code 204
payment_source updated
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to update this payment_source
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to update this payment_source"
}
}
HTTP status code 404
Could not find this payment_source
Body
Type: application/json
Example:
{
"error": {
"code": 404,
"message" : "Could not this payment_source"
}
}
post /orgs/{orgGid}/payment_source
Add (or replace) a payment method to the organization
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
The Credit Notes of the organization
get /orgs/{orgGid}/credit_notes
The Credit Notes of the organization
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
The webhooks associated to the organization
Add a webhook to the organization
get /orgs/{orgGid}/webhooks
The webhooks associated to the organization
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
post /orgs/{orgGid}/webhooks
Add a webhook to the organization
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
HTTP status code 201
Headers
-
Location:
required (string)
Location of the newly created webhook
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
{
"error": {
"code": 400,
"message" : "Data missing or invalid"
}
}
HTTP status code 403
Your are not authorized to create webhook
Body
Type: application/json
Example:
{
"error": {
"code": 403,
"message" : "Your are not authorized to create webhook"
}
}
Trigger a void event to test a potential webhook
post /orgs/{orgGid}/webhooks/check
Edit a webhook
Delete a webhook
put /orgs/{orgGid}/webhooks/{webhookGid}
delete /orgs/{orgGid}/webhooks/{webhookGid}
Available products for the current organization
Get a collection of products.
get /orgs/{orgGid}/products
Get a collection of products.
URI Parameters
- orgGid: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
search:
required (string)
A string containing terms or words to look for
Search users among an organization from a string query
Public
Publicly accessible resources
Gets the invitation (whether it creates a new user or not)
Create a user using invitation token
Files
Generate a signed URL (or renew an old one) to get a file.
{url}
parameter can be relative, absolute not signed or absolute signed. For instance, following values are valid :
- https://s3-eu-west-1.amazonaws.com/dev.creads-partners/user-55f307dce28df/avatar.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJK2Z7DGSCXXE42UQ%2F20161124%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20161124T111617Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=735845ff10204fd6b30aa397e52da27e7644d94f9699e2ae2c3d40fa8b5dbbcc
- user-55f307dce28df/avatar.png
- https://s3-eu-west-1.amazonaws.com/dev.creads-partners/user-55f307dce28df/avatar.png
{url}
value should be url encoded when sending.
get /files/{url}
Generate a signed URL (or renew an old one) to get a file.
{url}
parameter can be relative, absolute not signed or absolute signed. For instance, following values are valid :
- https://s3-eu-west-1.amazonaws.com/dev.creads-partners/user-55f307dce28df/avatar.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJK2Z7DGSCXXE42UQ%2F20161124%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20161124T111617Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=735845ff10204fd6b30aa397e52da27e7644d94f9699e2ae2c3d40fa8b5dbbcc
- user-55f307dce28df/avatar.png
- https://s3-eu-west-1.amazonaws.com/dev.creads-partners/user-55f307dce28df/avatar.png
{url}
value should be url encoded when sending.
URI Parameters
- url: required (string)
File Info
Get informations about a file.
Receipts
Searchable, pageable and orderable collection of receipts. As standard user you can only see your own receipts. As manager user, you can only see every receipts for organizations you are manager of.
Get a collection of receipts.
get /receipts
Get a collection of receipts.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid, user.gid, project.gid, gid
Example:
["user.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
-
orderBy:
(string - default: gid)
Order by field: created_at
-
sort:
(one of desc, asc - default: desc)
Order
-
offset:
(integer)
Skip over a number of elements by specifying an offset value for the query
Example:
20
-
limit:
(integer - default: 10)
Limit the number of elements on the response
Example:
80
Invoices
Searchable, pageable and orderable collection of invoices. As standard user you cant see any invoice. As a owner of an organization, you can only see every invoice for your organization.
Get a collection of invoices.
get /invoices
Get a collection of invoices.
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
-
query:
(string)
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
- Valid operators: ==, !=, like, >, <, >=, <=
- Valid searchable fields: organization.gid
Example:
["organization.gid", "==", "a615569f1e949b647ba10ed0adca790c"]
-
orderBy:
(string - default: gid)
Order by field: created_at
-
sort:
(one of desc, asc - default: desc)
Order
-
offset:
(integer)
Skip over a number of elements by specifying an offset value for the query
Example:
20
-
limit:
(integer - default: 10)
Limit the number of elements on the response
Example:
80
Starred files
Allows filepaths (already uploaded) to be marked as starred. Only supported (visible) for project messages attachments for now.
Mark a file as starred
post /files
Mark a file as starred
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
delete /files/{filepath}
URI Parameters
- filepath: required (string)
Headers
-
Authorization:
required (string)
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Comments
Generic comments system able to comment any REST resource (based on its relative URI). Standard user can not list every comments.
/comments get post
Get a collection of comments.
Create a new comment
get /comments
Get a collection of comments.
Headers
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Query Parameters
JSON array: *[["field1","operator1","value1"], ["field2","operator2","value2"], ..., ["fieldN","operatorN","valueN"]]*
Example:
Order by field: created_at
Order
Skip over a number of elements by specifying an offset value for the query
Example:
Limit the number of elements on the response
Example:
HTTP status code 200
Body
Type: application/json
Example:
HTTP status code 403
Your are not authorized to see comments
Body
Type: application/json
Example:
post /comments
Create a new comment
Headers
Authorization: Bearer TOKEN
See https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
Body
Type: application/json
HTTP status code 201
Headers
Location of the newly created comment
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
HTTP status code 403
Your are not authorized to create comment
Body
Type: application/json
Example:
/comments/{gid} get delete put
Get comment.
Delete resource comments.
Update resource comment
get /comments/{gid}
Get comment.
URI Parameters
HTTP status code 200
Body
Type: application/json
Example:
HTTP status code 403
Your are not authorized to see this comment
Body
Type: application/json
Example:
HTTP status code 404
Could not find this comment
Body
Type: application/json
Example:
delete /comments/{gid}
Delete resource comments.
URI Parameters
HTTP status code 204
comments deleted
HTTP status code 403
Your are not authorized to delete this comment
Body
Type: application/json
Example:
HTTP status code 404
Could not find this comment
Body
Type: application/json
Example:
put /comments/{gid}
Update resource comment
URI Parameters
Body
Type: application/json
HTTP status code 204
comments updated
HTTP status code 400
Data missing or invalid
Body
Type: application/json
Example:
HTTP status code 403
Your are not authorized to update this comments
Body
Type: application/json
Example:
HTTP status code 404
Could not find this comments
Body
Type: application/json
Example: