Updates the action progress
POST
/Actions/External/InsertChangeProgress
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://api-prod.scoreplan.com.br/Actions/External/InsertChangeProgress"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"id\": 1, \"actionId\": 1, \"description\": \"example\", \"date\": \"example\", \"percentageConclusion\": 1, \"realizedExpenseDeduction\": 1, \"realizedRevenueDeduction\": 1 }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "https://api-prod.scoreplan.com.br/Actions/External/InsertChangeProgress"
payload := strings.NewReader("{ \"id\": 1, \"actionId\": 1, \"description\": \"example\", \"date\": \"example\", \"percentageConclusion\": 1, \"realizedExpenseDeduction\": 1, \"realizedRevenueDeduction\": 1 }")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api-prod.scoreplan.com.br/Actions/External/InsertChangeProgress")) .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .method("POST", HttpRequest.BodyPublishers.ofString("{ \"id\": 1, \"actionId\": 1, \"description\": \"example\", \"date\": \"example\", \"percentageConclusion\": 1, \"realizedExpenseDeduction\": 1, \"realizedRevenueDeduction\": 1 }")) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");RequestBody body = RequestBody.create(mediaType, "{ \"id\": 1, \"actionId\": 1, \"description\": \"example\", \"date\": \"example\", \"percentageConclusion\": 1, \"realizedExpenseDeduction\": 1, \"realizedRevenueDeduction\": 1 }");Request request = new Request.Builder() .url("https://api-prod.scoreplan.com.br/Actions/External/InsertChangeProgress") .post(body) .addHeader("Authorization", "Bearer <token>") .addHeader("Content-Type", "application/json") .build();
Response response = client.newCall(request).execute();import axios from 'axios';
const options = { method: 'POST', url: 'https://api-prod.scoreplan.com.br/Actions/External/InsertChangeProgress', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, data: { id: 1, actionId: 1, description: 'example', date: 'example', percentageConclusion: 1, realizedExpenseDeduction: 1, realizedRevenueDeduction: 1 }};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}const url = 'https://api-prod.scoreplan.com.br/Actions/External/InsertChangeProgress';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"actionId":1,"description":"example","date":"example","percentageConclusion":1,"realizedExpenseDeduction":1,"realizedRevenueDeduction":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")val body = RequestBody.create(mediaType, "{ \"id\": 1, \"actionId\": 1, \"description\": \"example\", \"date\": \"example\", \"percentageConclusion\": 1, \"realizedExpenseDeduction\": 1, \"realizedRevenueDeduction\": 1 }")val request = Request.Builder() .url("https://api-prod.scoreplan.com.br/Actions/External/InsertChangeProgress") .post(body) .addHeader("Authorization", "Bearer <token>") .addHeader("Content-Type", "application/json") .build()
val response = client.newCall(request).execute()curl --request POST \ --url https://api-prod.scoreplan.com.br/Actions/External/InsertChangeProgress \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "actionId": 1, "description": "example", "date": "example", "percentageConclusion": 1, "realizedExpenseDeduction": 1, "realizedRevenueDeduction": 1 }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
id
integer format: int64
actionId
integer format: int64
description
null | string
date
null | string
percentageConclusion
integer format: int32
realizedExpenseDeduction
number format: double
realizedRevenueDeduction
number format: double
Example generated
{ "id": 1, "actionId": 1, "description": "example", "date": "example", "percentageConclusion": 1, "realizedExpenseDeduction": 1, "realizedRevenueDeduction": 1}Responses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
code
integer format: int64
title
null | string
description
null | string
phaseId
null | integer format: int64
startDateEstimated
null | string
endDateEstimated
null | string
situation
integer format: int64
percentageConclusion
integer format: int32
raci
object
responsible
object
userId
integer format: int64
trackProgress
null | boolean
authority
object
userId
integer format: int64
trackProgress
null | boolean
responsibles
Array<object> | null
object
userId
integer format: int64
trackProgress
null | boolean
groupResponsible
Array<object> | null
object
userGroupId
integer format: int64
trackProgress
null | boolean
authorities
Array<object> | null
object
userId
integer format: int64
trackProgress
null | boolean
groupAuthority
Array<object> | null
object
userGroupId
integer format: int64
trackProgress
null | boolean
consulted
Array<object> | null
object
userId
integer format: int64
trackProgress
null | boolean
groupConsulted
Array<object> | null
object
userGroupId
integer format: int64
trackProgress
null | boolean
informed
Array<object> | null
object
userId
integer format: int64
trackProgress
null | boolean
groupInformed
Array<object> | null
object
userGroupId
integer format: int64
trackProgress
null | boolean
sponsor
Array<object> | null
object
userId
integer format: int64
trackProgress
null | boolean
groupSponsor
Array<object> | null
object
userGroupId
integer format: int64
trackProgress
null | boolean
traceability
Array<object> | null
object
key
additional properties
string
lastTraceability
null | object
simplifiedTraceability
Array<string> | null
lastSimplifiedTraceability
null | string
idc
null | number format: double
idp
null | number format: double
sector
null | string
tags
Array<string> | null
classifications
Array<string> | null
Example generated
{ "id": 1, "code": 1, "title": "example", "description": "example", "phaseId": 1, "startDateEstimated": "example", "endDateEstimated": "example", "situation": 1, "percentageConclusion": 1, "raci": { "responsible": { "userId": 1, "trackProgress": true }, "authority": { "userId": 1, "trackProgress": true }, "responsibles": [ { "userId": 1, "trackProgress": true } ], "groupResponsible": [ { "userGroupId": 1, "trackProgress": true } ], "authorities": [ { "userId": 1, "trackProgress": true } ], "groupAuthority": [ { "userGroupId": 1, "trackProgress": true } ], "consulted": [ { "userId": 1, "trackProgress": true } ], "groupConsulted": [ { "userGroupId": 1, "trackProgress": true } ], "informed": [ { "userId": 1, "trackProgress": true } ], "groupInformed": [ { "userGroupId": 1, "trackProgress": true } ], "sponsor": [ { "userId": 1, "trackProgress": true } ], "groupSponsor": [ { "userGroupId": 1, "trackProgress": true } ] }, "traceability": [ { "additionalProperty": "example" } ], "lastTraceability": "example", "simplifiedTraceability": [ "example" ], "lastSimplifiedTraceability": "example", "idc": 1, "idp": 1, "sector": "example", "tags": [ "example" ], "classifications": [ "example" ]}