Skip to content

Latest commit

 

History

History
287 lines (190 loc) · 6.98 KB

ProjectparticipantApi.md

File metadata and controls

287 lines (190 loc) · 6.98 KB

TripletexApi::ProjectparticipantApi

All URIs are relative to https://tripletex.no/v2

Method HTTP request Description
delete_by_ids DELETE /project/participant/list [BETA] Delete project participants.
get GET /project/participant/{id} [BETA] Find project participant by ID.
post POST /project/participant [BETA] Add new project participant.
post_list POST /project/participant/list [BETA] Register new projects. Multiple projects for different users can be sent in the same request.
put PUT /project/participant/{id} [BETA] Update project participant.

delete_by_ids

delete_by_ids(ids)

[BETA] Delete project participants.

Example

# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = TripletexApi::ProjectparticipantApi.new

ids = "ids_example" # String | ID of the elements


begin
  #[BETA] Delete project participants.
  api_instance.delete_by_ids(ids)
rescue TripletexApi::ApiError => e
  puts "Exception when calling ProjectparticipantApi->delete_by_ids: #{e}"
end

Parameters

Name Type Description Notes
ids String ID of the elements

Return type

nil (empty response body)

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

get

ResponseWrapperProjectParticipant get(id, opts)

[BETA] Find project participant by ID.

Example

# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = TripletexApi::ProjectparticipantApi.new

id = 56 # Integer | Element ID

opts = { 
  fields: "fields_example" # String | Fields filter pattern
}

begin
  #[BETA] Find project participant by ID.
  result = api_instance.get(id, opts)
  p result
rescue TripletexApi::ApiError => e
  puts "Exception when calling ProjectparticipantApi->get: #{e}"
end

Parameters

Name Type Description Notes
id Integer Element ID
fields String Fields filter pattern [optional]

Return type

ResponseWrapperProjectParticipant

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

post

ResponseWrapperProjectParticipant post(opts)

[BETA] Add new project participant.

Example

# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = TripletexApi::ProjectparticipantApi.new

opts = { 
  body: TripletexApi::ProjectParticipant.new # ProjectParticipant | JSON representing the new object to be created. Should not have ID and version set.
}

begin
  #[BETA] Add new project participant.
  result = api_instance.post(opts)
  p result
rescue TripletexApi::ApiError => e
  puts "Exception when calling ProjectparticipantApi->post: #{e}"
end

Parameters

Name Type Description Notes
body ProjectParticipant JSON representing the new object to be created. Should not have ID and version set. [optional]

Return type

ResponseWrapperProjectParticipant

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: Not defined

post_list

ListResponseProjectParticipant post_list(opts)

[BETA] Register new projects. Multiple projects for different users can be sent in the same request.

Example

# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = TripletexApi::ProjectparticipantApi.new

opts = { 
  body: [TripletexApi::ProjectParticipant.new] # Array<ProjectParticipant> | JSON representing a list of new object to be created. Should not have ID and version set.
}

begin
  #[BETA] Register new projects. Multiple projects for different users can be sent in the same request.
  result = api_instance.post_list(opts)
  p result
rescue TripletexApi::ApiError => e
  puts "Exception when calling ProjectparticipantApi->post_list: #{e}"
end

Parameters

Name Type Description Notes
body Array<ProjectParticipant> JSON representing a list of new object to be created. Should not have ID and version set. [optional]

Return type

ListResponseProjectParticipant

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: Not defined

put

ResponseWrapperProjectParticipant put(id, opts)

[BETA] Update project participant.

Example

# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = TripletexApi::ProjectparticipantApi.new

id = 56 # Integer | Element ID

opts = { 
  body: TripletexApi::ProjectParticipant.new # ProjectParticipant | Partial object describing what should be updated
}

begin
  #[BETA] Update project participant.
  result = api_instance.put(id, opts)
  p result
rescue TripletexApi::ApiError => e
  puts "Exception when calling ProjectparticipantApi->put: #{e}"
end

Parameters

Name Type Description Notes
id Integer Element ID
body ProjectParticipant Partial object describing what should be updated [optional]

Return type

ResponseWrapperProjectParticipant

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: Not defined