Sub-sektor

Sub-sektor

METHOD: POST

Service ini menyediakan data sub sektoral.

{{}}
Baseurl
https://webapi-dimassatria.banyumaskab.go.id
{{baseurl}}/app/v1/sectoralsub/

Headers
Header Type Required Description
x-username string Yes The username for the user
x-password string Yes The password for the user

Auth Type
Auth Type Type Required Description
Bearer Token string Yes Key app to access API (You need an token API. Please log in to the API to generate an token. If you already have an token, please provide it below.)

Parameter
Field Type Required Description
id_sector Number Yes

ID unique of Sector (see master Sector)
Size range: 3


Success (200 OK)
HTTP/1.1 200 OK 
{ "code": "200", "message": "data-available", "data": [ { "id": "54", "id_sektor": "3", "sub_sektor": "Hortikultura", "sub_sektor_slug": "hortikultura", "icon": "icon_2310221020266354b2fad58c21815.png" }, { "id": "55", "id_sektor": "3", "sub_sektor": "Kehutanan", "sub_sektor_slug": "kehutanan", "icon": "icon_2310221021256354b335bfd781655.png" },... ] }

Error 4xx
HTTP/1.1 40x 
{ "code": "40x", "message": "account does not match", "data": [] }