docs/CustomMetadataApi.md in phrase-2.21.0 vs docs/CustomMetadataApi.md in phrase-2.22.0
- old
+ new
@@ -147,11 +147,11 @@
- **Accept**: application/json
## custom_metadata_property_create
-> CustomMetadataProperty custom_metadata_property_create(account_id, name, data_type, opts)
+> CustomMetadataProperty custom_metadata_property_create(account_id, custom_metadata_properties_create_parameters, opts)
Create a property
Create a new custom metadata property.
@@ -171,22 +171,18 @@
config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::CustomMetadataApi.new
account_id = 'account_id_example' # String | Account ID
-name = '["Fruit"]' # String | name of the property
-data_type = Phrase::CustomMetadataDataType::BOOLEAN # CustomMetadataDataType | Data Type of Custom Metadata Property
+custom_metadata_properties_create_parameters = Phrase::CustomMetadataPropertiesCreateParameters.new({name: 'Fruit', data_type: Phrase::CustomMetadataDataType::BOOLEAN}) # CustomMetadataPropertiesCreateParameters |
opts = {
- x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
- description: '["A healthy snack for all ages"]', # String | description of property
- project_ids: ['inner_example'], # Array<String> | ids of projects that the property belongs to
- value_options: ['inner_example'] # Array<String> | value options of property (only applies to single or multi select properties)
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
}
begin
#Create a property
- result = api_instance.custom_metadata_property_create(account_id, name, data_type, opts)
+ result = api_instance.custom_metadata_property_create(account_id, custom_metadata_properties_create_parameters, opts)
pp result
rescue Phrase::ApiError => e
puts "Exception when calling CustomMetadataApi->custom_metadata_property_create: #{e}"
end
```
@@ -195,16 +191,12 @@
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**account_id** | **String**| Account ID |
- **name** | **String**| name of the property |
- **data_type** | [**CustomMetadataDataType**](.md)| Data Type of Custom Metadata Property |
+ **custom_metadata_properties_create_parameters** | [**CustomMetadataPropertiesCreateParameters**](CustomMetadataPropertiesCreateParameters.md)| |
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
- **description** | **String**| description of property | [optional]
- **project_ids** | [**Array<String>**](String.md)| ids of projects that the property belongs to | [optional]
- **value_options** | [**Array<String>**](String.md)| value options of property (only applies to single or multi select properties) | [optional]
### Return type
Response<([**CustomMetadataProperty**](CustomMetadataProperty.md))>
@@ -212,11 +204,11 @@
[Basic](../README.md#Basic), [Token](../README.md#Token)
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: application/json
## custom_metadata_property_show
@@ -281,11 +273,11 @@
- **Accept**: application/json
## custom_metadata_property_update
-> CustomMetadataProperty custom_metadata_property_update(account_id, id, opts)
+> CustomMetadataProperty custom_metadata_property_update(account_id, id, custom_metadata_properties_update_parameters, opts)
Update a property
Update an existing custom metadata property.
@@ -306,21 +298,18 @@
end
api_instance = Phrase::CustomMetadataApi.new
account_id = 'account_id_example' # String | Account ID
id = 'id_example' # String | ID
+custom_metadata_properties_update_parameters = Phrase::CustomMetadataPropertiesUpdateParameters.new # CustomMetadataPropertiesUpdateParameters |
opts = {
- x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
- name: '["Fruit"]', # String | name of the property
- description: '["A healthy snack for all ages"]', # String | description of property
- project_ids: ['inner_example'], # Array<String> | ids of projects that the property belongs to
- value_options: ['inner_example'] # Array<String> | value options of property (only applies to single or multi select properties)
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
}
begin
#Update a property
- result = api_instance.custom_metadata_property_update(account_id, id, opts)
+ result = api_instance.custom_metadata_property_update(account_id, id, custom_metadata_properties_update_parameters, opts)
pp result
rescue Phrase::ApiError => e
puts "Exception when calling CustomMetadataApi->custom_metadata_property_update: #{e}"
end
```
@@ -330,15 +319,12 @@
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**account_id** | **String**| Account ID |
**id** | **String**| ID |
+ **custom_metadata_properties_update_parameters** | [**CustomMetadataPropertiesUpdateParameters**](CustomMetadataPropertiesUpdateParameters.md)| |
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
- **name** | **String**| name of the property | [optional]
- **description** | **String**| description of property | [optional]
- **project_ids** | [**Array<String>**](String.md)| ids of projects that the property belongs to | [optional]
- **value_options** | [**Array<String>**](String.md)| value options of property (only applies to single or multi select properties) | [optional]
### Return type
Response<([**CustomMetadataProperty**](CustomMetadataProperty.md))>
@@ -346,8 +332,8 @@
[Basic](../README.md#Basic), [Token](../README.md#Token)
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: application/json