POST api/Flow/Approval/Save

Request Information

URI Parameters

None.

Body Parameters

Approval
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

NameEn

string

None.

Icon

string

None.

Type

integer

None.

Status

boolean

None.

Templates

Collection of Template

None.

Conditions

Collection of Condition

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "nameEn": "sample string 3",
  "icon": "sample string 4",
  "type": 5,
  "status": true,
  "templates": [
    {
      "id": 1,
      "title": "sample string 2",
      "type": 3,
      "placeholder": "sample string 4",
      "isValidate": true,
      "options": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "id": 1,
      "title": "sample string 2",
      "type": 3,
      "placeholder": "sample string 4",
      "isValidate": true,
      "options": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "conditions": [
    {
      "id": 1,
      "filterColumn": 2,
      "filterOperator": 3,
      "filterDuration": 4.1,
      "filterUsers": [
        {
          "id": "sample string 1",
          "jobnumber": "sample string 2",
          "name": "sample string 3",
          "gender": 4,
          "genderName": "sample string 5",
          "active": 6,
          "activeName": "sample string 7",
          "birthdate": 8,
          "hiredate": 9,
          "photo": "sample string 10",
          "departments": [
            {
              "value": "sample string 1",
              "label": "sample string 2"
            },
            {
              "value": "sample string 1",
              "label": "sample string 2"
            }
          ],
          "extends": [
            {
              "extend_label": "sample string 1",
              "extend_value": "sample string 2",
              "extend_key": "sample string 3"
            },
            {
              "extend_label": "sample string 1",
              "extend_value": "sample string 2",
              "extend_key": "sample string 3"
            }
          ]
        },
        {
          "id": "sample string 1",
          "jobnumber": "sample string 2",
          "name": "sample string 3",
          "gender": 4,
          "genderName": "sample string 5",
          "active": 6,
          "activeName": "sample string 7",
          "birthdate": 8,
          "hiredate": 9,
          "photo": "sample string 10",
          "departments": [
            {
              "value": "sample string 1",
              "label": "sample string 2"
            },
            {
              "value": "sample string 1",
              "label": "sample string 2"
            }
          ],
          "extends": [
            {
              "extend_label": "sample string 1",
              "extend_value": "sample string 2",
              "extend_key": "sample string 3"
            },
            {
              "extend_label": "sample string 1",
              "extend_value": "sample string 2",
              "extend_key": "sample string 3"
            }
          ]
        }
      ],
      "filterHolidays": [
        {
          "id": 1,
          "name": "sample string 2"
        },
        {
          "id": 1,
          "name": "sample string 2"
        }
      ],
      "processes": [
        {
          "id": 1,
          "type": 2,
          "consentMode": 3,
          "users": [
            {
              "id": "sample string 1",
              "jobnumber": "sample string 2",
              "name": "sample string 3",
              "gender": 4,
              "genderName": "sample string 5",
              "active": 6,
              "activeName": "sample string 7",
              "birthdate": 8,
              "hiredate": 9,
              "photo": "sample string 10",
              "departments": [
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                },
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                }
              ],
              "extends": [
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                },
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                }
              ]
            },
            {
              "id": "sample string 1",
              "jobnumber": "sample string 2",
              "name": "sample string 3",
              "gender": 4,
              "genderName": "sample string 5",
              "active": 6,
              "activeName": "sample string 7",
              "birthdate": 8,
              "hiredate": 9,
              "photo": "sample string 10",
              "departments": [
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                },
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                }
              ],
              "extends": [
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                },
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                }
              ]
            }
          ]
        },
        {
          "id": 1,
          "type": 2,
          "consentMode": 3,
          "users": [
            {
              "id": "sample string 1",
              "jobnumber": "sample string 2",
              "name": "sample string 3",
              "gender": 4,
              "genderName": "sample string 5",
              "active": 6,
              "activeName": "sample string 7",
              "birthdate": 8,
              "hiredate": 9,
              "photo": "sample string 10",
              "departments": [
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                },
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                }
              ],
              "extends": [
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                },
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                }
              ]
            },
            {
              "id": "sample string 1",
              "jobnumber": "sample string 2",
              "name": "sample string 3",
              "gender": 4,
              "genderName": "sample string 5",
              "active": 6,
              "activeName": "sample string 7",
              "birthdate": 8,
              "hiredate": 9,
              "photo": "sample string 10",
              "departments": [
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                },
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                }
              ],
              "extends": [
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                },
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                }
              ]
            }
          ]
        }
      ],
      "notifys": [
        {
          "id": 1,
          "name": "sample string 2",
          "nameEn": "sample string 3"
        },
        {
          "id": 1,
          "name": "sample string 2",
          "nameEn": "sample string 3"
        }
      ],
      "sortNumbet": 5
    },
    {
      "id": 1,
      "filterColumn": 2,
      "filterOperator": 3,
      "filterDuration": 4.1,
      "filterUsers": [
        {
          "id": "sample string 1",
          "jobnumber": "sample string 2",
          "name": "sample string 3",
          "gender": 4,
          "genderName": "sample string 5",
          "active": 6,
          "activeName": "sample string 7",
          "birthdate": 8,
          "hiredate": 9,
          "photo": "sample string 10",
          "departments": [
            {
              "value": "sample string 1",
              "label": "sample string 2"
            },
            {
              "value": "sample string 1",
              "label": "sample string 2"
            }
          ],
          "extends": [
            {
              "extend_label": "sample string 1",
              "extend_value": "sample string 2",
              "extend_key": "sample string 3"
            },
            {
              "extend_label": "sample string 1",
              "extend_value": "sample string 2",
              "extend_key": "sample string 3"
            }
          ]
        },
        {
          "id": "sample string 1",
          "jobnumber": "sample string 2",
          "name": "sample string 3",
          "gender": 4,
          "genderName": "sample string 5",
          "active": 6,
          "activeName": "sample string 7",
          "birthdate": 8,
          "hiredate": 9,
          "photo": "sample string 10",
          "departments": [
            {
              "value": "sample string 1",
              "label": "sample string 2"
            },
            {
              "value": "sample string 1",
              "label": "sample string 2"
            }
          ],
          "extends": [
            {
              "extend_label": "sample string 1",
              "extend_value": "sample string 2",
              "extend_key": "sample string 3"
            },
            {
              "extend_label": "sample string 1",
              "extend_value": "sample string 2",
              "extend_key": "sample string 3"
            }
          ]
        }
      ],
      "filterHolidays": [
        {
          "id": 1,
          "name": "sample string 2"
        },
        {
          "id": 1,
          "name": "sample string 2"
        }
      ],
      "processes": [
        {
          "id": 1,
          "type": 2,
          "consentMode": 3,
          "users": [
            {
              "id": "sample string 1",
              "jobnumber": "sample string 2",
              "name": "sample string 3",
              "gender": 4,
              "genderName": "sample string 5",
              "active": 6,
              "activeName": "sample string 7",
              "birthdate": 8,
              "hiredate": 9,
              "photo": "sample string 10",
              "departments": [
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                },
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                }
              ],
              "extends": [
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                },
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                }
              ]
            },
            {
              "id": "sample string 1",
              "jobnumber": "sample string 2",
              "name": "sample string 3",
              "gender": 4,
              "genderName": "sample string 5",
              "active": 6,
              "activeName": "sample string 7",
              "birthdate": 8,
              "hiredate": 9,
              "photo": "sample string 10",
              "departments": [
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                },
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                }
              ],
              "extends": [
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                },
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                }
              ]
            }
          ]
        },
        {
          "id": 1,
          "type": 2,
          "consentMode": 3,
          "users": [
            {
              "id": "sample string 1",
              "jobnumber": "sample string 2",
              "name": "sample string 3",
              "gender": 4,
              "genderName": "sample string 5",
              "active": 6,
              "activeName": "sample string 7",
              "birthdate": 8,
              "hiredate": 9,
              "photo": "sample string 10",
              "departments": [
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                },
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                }
              ],
              "extends": [
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                },
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                }
              ]
            },
            {
              "id": "sample string 1",
              "jobnumber": "sample string 2",
              "name": "sample string 3",
              "gender": 4,
              "genderName": "sample string 5",
              "active": 6,
              "activeName": "sample string 7",
              "birthdate": 8,
              "hiredate": 9,
              "photo": "sample string 10",
              "departments": [
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                },
                {
                  "value": "sample string 1",
                  "label": "sample string 2"
                }
              ],
              "extends": [
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                },
                {
                  "extend_label": "sample string 1",
                  "extend_value": "sample string 2",
                  "extend_key": "sample string 3"
                }
              ]
            }
          ]
        }
      ],
      "notifys": [
        {
          "id": 1,
          "name": "sample string 2",
          "nameEn": "sample string 3"
        },
        {
          "id": 1,
          "name": "sample string 2",
          "nameEn": "sample string 3"
        }
      ],
      "sortNumbet": 5
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResultOfBoolean
NameDescriptionTypeAdditional information
code

integer

None.

message

string

None.

result

boolean

None.

Response Formats

application/json, text/json

Sample:

Sample not available.