GET person/getAllActivities?PersonId={PersonId}&Token={Token}&IncludingCanceled={IncludingCanceled}

Retrieve all activities of the person. Application privilege "View" for licensed agenda "Persons" required. Application privilege "View" for agenda item "Activities" of licensed agenda "Persons" required. Data may also be restricted by record permission "View" of agenda "Persons".

Request Information

Authorization

  • Authorization by token required

Availability

  • Method disabled by configuration

URI Parameters

NameDescriptionTypeAdditional information
PersonId

Unique identification of the person in the system

string

Required

String length: inclusive between 0 and 100

Token

The action is authorized by this token. Token should generated by calling action "POST login". Expiration time of each token is 20 seconds

globally unique identifier

Required

IncludingCanceled

IncludingCanceled. The value "1" means that all activities will be displayed. The value "0" means that only not canceled activities will be displayed. Default value is "0"

integer

Range: inclusive between 0 and 1

Body Parameters

None.

Response Information

Response Codes

Http CodeError NumberDescription
200 request succesfully done 0 Successfully done
400 bad request 1002 Entry parameter missing or parameter bindigs failed
401 unauthorized 1000 Token {0} not found
401 unauthorized 1001 Token {0} already expired
401 unauthorized 1006 Ip filter violated for ip client address [{0}]
401 unauthorized 1007 Ip filter [{0}] parsing failed
401 unauthorized 1008 Request rate policy violated for [{0}]
403 server refuses fo fulfill the request 1101 Application privilege View for licensed agenda Persons violated for person [{0}]
403 server refuses fo fulfill the request 2121 Application privilege View for of agenda item Activities of licensed agenda Persons violated for person [{0}]
404 required resource does not exist on the server 1100 PersonId [{0}] not found
415 unsupported Media Type The request entity has a media type which the server or resource does not support. Only application/json and application/xml are supported
500 internal error Server exception description

Resource Description

PersonGetAllActivitiesResp
NameDescriptionTypeAdditional information
PersonId

Unique identification of the person in the system

string

None.

Activities

Collection of Activity

None.

Response Formats

application/json

Sample:
{"PersonId":"100200300","Activities":[{"ActivityType":{"Title":"Vrácení identifikátoru osoba","Shortcut":"VIO","Frequency":0,"Signed":0},"Number":null,"ValidFrom":null,"ValidTo":null,"Description":"Test activity A","Attachment":null,"IsCancelled":0}]}

application/xml

Sample:

<Response>
  <PersonId>100200300</PersonId>
  <PersonActivities>
    <Activity>
      <ActivityType>
        <Title>Vrácení identifikátoru osoba</Title>
        <Shortcut>VIO</Shortcut>
        <Frequency>0</Frequency>
        <Signed>0</Signed>
      </ActivityType>
      <Description>Test activity A</Description>
      <IsCancelled>0</IsCancelled>
    </Activity>
  </PersonActivities>
</Response>

text/json

Sample:
{
  "PersonId": "sample string 1",
  "Activities": [
    {
      "ActivityType": {
        "Title": "sample string 1",
        "Shortcut": "sample string 2",
        "Frequency": 3,
        "Signed": 4
      },
      "Number": "sample string 1",
      "ValidFrom": "2024-12-03T14:59:56.4149613+01:00",
      "ValidTo": "2024-12-03T14:59:56.4149613+01:00",
      "Description": "sample string 2",
      "Attachment": {
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Path": "sample string 3",
        "Data": "QEA="
      },
      "IsCancelled": 3
    },
    {
      "ActivityType": {
        "Title": "sample string 1",
        "Shortcut": "sample string 2",
        "Frequency": 3,
        "Signed": 4
      },
      "Number": "sample string 1",
      "ValidFrom": "2024-12-03T14:59:56.4149613+01:00",
      "ValidTo": "2024-12-03T14:59:56.4149613+01:00",
      "Description": "sample string 2",
      "Attachment": {
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Path": "sample string 3",
        "Data": "QEA="
      },
      "IsCancelled": 3
    }
  ]
}

text/xml

Sample:
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PersonId>sample string 1</PersonId>
  <PersonActivities>
    <Activity>
      <ActivityType>
        <Title>sample string 1</Title>
        <Shortcut>sample string 2</Shortcut>
        <Frequency>3</Frequency>
        <Signed>4</Signed>
      </ActivityType>
      <Number>sample string 1</Number>
      <ValidFrom>2024-12-03T14:59:56.4149613+01:00</ValidFrom>
      <ValidTo>2024-12-03T14:59:56.4149613+01:00</ValidTo>
      <Description>sample string 2</Description>
      <Attachment>
        <Name>sample string 1</Name>
        <Description>sample string 2</Description>
        <Path>sample string 3</Path>
        <Data>QEA=</Data>
      </Attachment>
      <IsCancelled>3</IsCancelled>
    </Activity>
    <Activity>
      <ActivityType>
        <Title>sample string 1</Title>
        <Shortcut>sample string 2</Shortcut>
        <Frequency>3</Frequency>
        <Signed>4</Signed>
      </ActivityType>
      <Number>sample string 1</Number>
      <ValidFrom>2024-12-03T14:59:56.4149613+01:00</ValidFrom>
      <ValidTo>2024-12-03T14:59:56.4149613+01:00</ValidTo>
      <Description>sample string 2</Description>
      <Attachment>
        <Name>sample string 1</Name>
        <Description>sample string 2</Description>
        <Path>sample string 3</Path>
        <Data>QEA=</Data>
      </Attachment>
      <IsCancelled>3</IsCancelled>
    </Activity>
  </PersonActivities>
</Response>