POST company/add_job_agreement_template

添加项目合同模板,项目管理员,主负责人和在项目内的法务有权限

Request Information

URI Parameters

None.

Body Parameters

AddJobAgreementTemplateViewModel
NameDescriptionTypeAdditional information
job_id

integer

None.

name

string

None.

relation_id

integer

None.

category_id

integer

None.

note

string

None.

need_back

boolean

None.

title

string

None.

agreement_template_part_list

Collection of AddAgreementTemplatePartViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "job_id": 1,
  "name": "sample string 2",
  "relation_id": 3,
  "category_id": 4,
  "note": "sample string 5",
  "need_back": true,
  "title": "sample string 7",
  "agreement_template_part_list": [
    {
      "is_agreement_date": true,
      "agreement_part_type_id": 2,
      "title": "sample string 3",
      "agreement_part_field_type_id": 1,
      "description": "sample string 4"
    },
    {
      "is_agreement_date": true,
      "agreement_part_type_id": 2,
      "title": "sample string 3",
      "agreement_part_field_type_id": 1,
      "description": "sample string 4"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

添加项目合同模板,项目管理员,主负责人和在项目内的法务有权限

BaseResponse
NameDescriptionTypeAdditional information
code

integer

None.

message

string

None.

success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "message": "sample string 2",
  "success": true
}