json/v1.0/estimate.json in sk_api_schema-0.1.2 vs json/v1.0/estimate.json in sk_api_schema-0.2.0
- old
+ new
@@ -78,13 +78,12 @@
"readonly":true,
"type":"object",
"properties":{"$ref":"./client.json#properties"}
},
"client_id":{
- "description": "The clients uuid, must be set for a new document. New estimates take the clients address field, due days and cash discount if those fields are not set.",
- "type":"string",
- "required":true
+ "description": "The clients uuid. If a new client is assigned its language, address field are used if those fields are not set.",
+ "type":"string"
},
"team_id":{
"description": "A team uuid. If set only the team and its parent teams can see the record.",
"type":"string"
},
@@ -169,9 +168,24 @@
},
"filter[to]":{
"title" : "To date",
"description": "All objects with date before the date",
"type" : "date"
+ },
+ "filter[languages]":{
+ "title" : "Languages",
+ "description": "A list of language codes, comma separated",
+ "type" : "string"
+ },
+ "filter[client_ids]":{
+ "title" : "Clients",
+ "description": "A single or a list of client uuids, comma separated",
+ "type" : "string"
+ },
+ "filter[ids]":{
+ "title" : "Documents",
+ "description": "A single or a list of document uuids, comma separated",
+ "type" : "string"
},
"sort_by":{
"title" : "Sort by",
"description": "Sort the results by the given field => number",
"enum":["title", "number", "created_at", "updated_at", "client_id", "price_total", "price_tax", "date", "due_date"],