Skip to content

Latest commit

 

History

History
126 lines (66 loc) · 3.85 KB

UserProfilesApi.md

File metadata and controls

126 lines (66 loc) · 3.85 KB

\UserProfilesApi

All URIs are relative to https://www.metaculus.com

Method HTTP request Description
user_profiles_list GET /api2/user-profiles/
user_profiles_partial_update PATCH /api2/user-profiles/{id}/
user_profiles_retrieve GET /api2/user-profiles/{id}/
user_profiles_update PUT /api2/user-profiles/{id}/

user_profiles_list

crate::models::PaginatedUserProfileList user_profiles_list(page)

Parameters

Name Type Description Required Notes
page Option<i32> A page number within the paginated result set.

Return type

crate::models::PaginatedUserProfileList

Authorization

basicAuth, cookieAuth, tokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

user_profiles_partial_update

crate::models::UserProfile user_profiles_partial_update(id, patched_user_profile)

Parameters

Name Type Description Required Notes
id i32 [required]
patched_user_profile Option<PatchedUserProfile>

Return type

crate::models::UserProfile

Authorization

basicAuth, cookieAuth, tokenAuth

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

user_profiles_retrieve

crate::models::UserProfile user_profiles_retrieve(id)

Parameters

Name Type Description Required Notes
id i32 [required]

Return type

crate::models::UserProfile

Authorization

basicAuth, cookieAuth, tokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

user_profiles_update

crate::models::UserProfile user_profiles_update(id, user_profile)

Parameters

Name Type Description Required Notes
id i32 [required]
user_profile Option<UserProfile>

Return type

crate::models::UserProfile

Authorization

basicAuth, cookieAuth, tokenAuth

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]