Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
PUT | /articles/{Id} | Updates article | Updates article for the currently logged in user |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | query | int | Yes | |
CompanyId | body | Guid? | No | |
Name | body | string | No | |
ArticleTypeId | body | int? | No | |
Description | body | string | No | |
ImageUrl | body | Uri | No | |
Active | body | bool? | No | |
Amount | body | int | No | |
Price | body | double | No | . |
CurrencyId | body | string | No | The payment currency id |
ServiceIds | query | int[] | No | Query for specific services. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | form | Guid | No | |
Id | form | int | No | |
Name | form | string | No | |
ArticleTypeId | form | int | No | |
Description | form | string | No | |
ImageUrl | form | string | No | |
Active | form | bool | No | |
Amount | form | int | No | |
Price | form | double | No | |
CurrencyId | form | string | No | |
UpdatedDate | form | DateTime | No | |
CreatedDate | form | DateTime | No | |
Services | form | List<ArticleServiceRelation> | No | |
ServiceIds | form | List<int> | No | |
PriceSign | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | form | Guid | Yes | |
Id | form | int | No | |
ServiceId | form | int | Yes | |
ArticleId | form | int | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /articles/{Id} HTTP/1.1
Host: api.bokamera.se
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Id":0,"CompanyId":"00000000-0000-0000-0000-000000000000","Name":"String","ArticleTypeId":0,"Description":"String","Active":false,"Amount":0,"Price":0,"CurrencyId":"String","ServiceIds":[0]}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Id":0,"Name":"String","ArticleTypeId":0,"Description":"String","ImageUrl":"String","Active":false,"Amount":0,"Price":0,"CurrencyId":"String","Services":[{"Id":0,"ServiceId":0,"ArticleId":0}],"ServiceIds":[0],"PriceSign":"String"}