contract_company:enable
corpId
id
Authorization: Bearer ********************
{ "corpId": "{{corpId}}", "id": "{{contractCompanyId}}" }
curl --location 'https://app91651.eapps.dingtalkcloud.com/open/api/v1/contract/company/enable' \ --header 'client_id: {{client_id}}' \ --header 'client_secret: {{client_secret}}' \ --header 'grant_type: client_credentials' \ --header 'scope: contract_company:enable' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "corpId": "{{corpId}}", "id": "{{contractCompanyId}}" }'
{ "data": { "corpId": "corp_001", "contractCompanyId": "company_001", "errorMsg": null }, "success": true, "errorCode": null, "errorMsg": null, "rid": "trace-example" }