custom_attributes not returning from Magento 2 REST APIHow can i Import & Export attributes & attribute set through import fuctionality in magento 2.0?Magento 2 rest api get product's attributes optionsHow to Update Magento 2 configurable child products price by REST APIMagento 2 Rest API Returning Net::HTTPRetriableError: 302 “Found”Magento2 Rest api without any moduleCreate configurable product using rest api magento 2.2.6How get wishlist in Magento 2 Rest API?Is Instant Purchase REST API available in Magento 2?Create product attribute with options in magento2 through rest APIMagento 2: Is there a way to return custom json response from REST API without building a data interface?
In "Avengers: Endgame", what does this name refer to?
What do you call a painting painted on a wall?
What detail can Hubble see on Mars?
What is the meaning of 「隣のおじいさんは言いました」
Was there a dinosaur-counter in the original Jurassic Park movie?
GitLab account hacked and repo wiped
Reverse ColorFunction or ColorData
How to use awk to extract data from a file based on the content of another file?
Can a player choose to add detail and flavor to their character's spells and abilities?
Playing Doublets with the Primes
Can a good but unremarkable PhD student become an accomplished professor?
Which "exotic salt" can lower water's freezing point by –70 °C?
How to speed up large double sums in a table?
Find the area of the smallest rectangle to contain squares of sizes up to n
What does the copyright in a dissertation protect exactly?
How can I obtain and work with a Platonic dodecahedron?
Installing Debian 10, upgrade to stable later?
What's the 2-minute timer on mobile Deutsche Bahn tickets?
Do quaternary sulfur dications exist?
What is more safe for browsing the web: PC or smartphone?
How to deal with employer who keeps me at work after working hours
My large rocket is still flipping over
What is monoid homomorphism exactly?
Why increasing of the temperature of the objects like wood, paper etc. doesn't fire them?
custom_attributes not returning from Magento 2 REST API
How can i Import & Export attributes & attribute set through import fuctionality in magento 2.0?Magento 2 rest api get product's attributes optionsHow to Update Magento 2 configurable child products price by REST APIMagento 2 Rest API Returning Net::HTTPRetriableError: 302 “Found”Magento2 Rest api without any moduleCreate configurable product using rest api magento 2.2.6How get wishlist in Magento 2 Rest API?Is Instant Purchase REST API available in Magento 2?Create product attribute with options in magento2 through rest APIMagento 2: Is there a way to return custom json response from REST API without building a data interface?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Using the Magento 2 REST API, I was able to successfully create a new product attribute sending a PUT request to V1/products/attributes/attribute_code. In the request, I added a value in the custom_attributes object. However, when I got the attribute I created using a GET request to the same endpoint, I noticed the custom_attributes section was not returned. I can't seem to find any endpoint that will return that data. Could someone point me in the right direction? I'm very new to Magento development. If it helps, here's the JSON I used for the PUT request:
"attribute":
"extension_attributes":
"is_pagebuilder_enabled": true
,
"is_wysiwyg_enabled": false,
"is_html_allowed_on_front": true,
"used_for_sort_by": false,
"is_filterable": true,
"is_filterable_in_search": true,
"is_used_in_grid": false,
"is_visible_in_grid": true,
"is_filterable_in_grid": false,
"position": 0,
"apply_to": [],
"is_searchable": "0",
"is_visible_in_advanced_search": "0",
"is_comparable": "1",
"is_used_for_promo_rules": "0",
"is_visible_on_front": "1",
"used_in_product_listing": "1",
"is_visible": true,
"scope": "store",
"frontend_input": "text",
"entity_type_id": "4",
"is_required": false,
"options": [],
"is_user_defined": true,
"default_frontend_label": "string",
"frontend_labels": [
"store_id": 0,
"label": "string"
],
"is_user_defined": true,
"default_frontend_label": "testing",
"frontend_labels": [],
"backend_type": "varchar",
"backend_model": "Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend",
"default_value": "",
"is_unique": "0",
"validation_rules": [],
"custom_attributes": [
"attribute_code": "test-attr",
"value": "true"
]
magento2 product-attribute rest-api custom-attributes webapi
New contributor
add a comment |
Using the Magento 2 REST API, I was able to successfully create a new product attribute sending a PUT request to V1/products/attributes/attribute_code. In the request, I added a value in the custom_attributes object. However, when I got the attribute I created using a GET request to the same endpoint, I noticed the custom_attributes section was not returned. I can't seem to find any endpoint that will return that data. Could someone point me in the right direction? I'm very new to Magento development. If it helps, here's the JSON I used for the PUT request:
"attribute":
"extension_attributes":
"is_pagebuilder_enabled": true
,
"is_wysiwyg_enabled": false,
"is_html_allowed_on_front": true,
"used_for_sort_by": false,
"is_filterable": true,
"is_filterable_in_search": true,
"is_used_in_grid": false,
"is_visible_in_grid": true,
"is_filterable_in_grid": false,
"position": 0,
"apply_to": [],
"is_searchable": "0",
"is_visible_in_advanced_search": "0",
"is_comparable": "1",
"is_used_for_promo_rules": "0",
"is_visible_on_front": "1",
"used_in_product_listing": "1",
"is_visible": true,
"scope": "store",
"frontend_input": "text",
"entity_type_id": "4",
"is_required": false,
"options": [],
"is_user_defined": true,
"default_frontend_label": "string",
"frontend_labels": [
"store_id": 0,
"label": "string"
],
"is_user_defined": true,
"default_frontend_label": "testing",
"frontend_labels": [],
"backend_type": "varchar",
"backend_model": "Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend",
"default_value": "",
"is_unique": "0",
"validation_rules": [],
"custom_attributes": [
"attribute_code": "test-attr",
"value": "true"
]
magento2 product-attribute rest-api custom-attributes webapi
New contributor
add a comment |
Using the Magento 2 REST API, I was able to successfully create a new product attribute sending a PUT request to V1/products/attributes/attribute_code. In the request, I added a value in the custom_attributes object. However, when I got the attribute I created using a GET request to the same endpoint, I noticed the custom_attributes section was not returned. I can't seem to find any endpoint that will return that data. Could someone point me in the right direction? I'm very new to Magento development. If it helps, here's the JSON I used for the PUT request:
"attribute":
"extension_attributes":
"is_pagebuilder_enabled": true
,
"is_wysiwyg_enabled": false,
"is_html_allowed_on_front": true,
"used_for_sort_by": false,
"is_filterable": true,
"is_filterable_in_search": true,
"is_used_in_grid": false,
"is_visible_in_grid": true,
"is_filterable_in_grid": false,
"position": 0,
"apply_to": [],
"is_searchable": "0",
"is_visible_in_advanced_search": "0",
"is_comparable": "1",
"is_used_for_promo_rules": "0",
"is_visible_on_front": "1",
"used_in_product_listing": "1",
"is_visible": true,
"scope": "store",
"frontend_input": "text",
"entity_type_id": "4",
"is_required": false,
"options": [],
"is_user_defined": true,
"default_frontend_label": "string",
"frontend_labels": [
"store_id": 0,
"label": "string"
],
"is_user_defined": true,
"default_frontend_label": "testing",
"frontend_labels": [],
"backend_type": "varchar",
"backend_model": "Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend",
"default_value": "",
"is_unique": "0",
"validation_rules": [],
"custom_attributes": [
"attribute_code": "test-attr",
"value": "true"
]
magento2 product-attribute rest-api custom-attributes webapi
New contributor
Using the Magento 2 REST API, I was able to successfully create a new product attribute sending a PUT request to V1/products/attributes/attribute_code. In the request, I added a value in the custom_attributes object. However, when I got the attribute I created using a GET request to the same endpoint, I noticed the custom_attributes section was not returned. I can't seem to find any endpoint that will return that data. Could someone point me in the right direction? I'm very new to Magento development. If it helps, here's the JSON I used for the PUT request:
"attribute":
"extension_attributes":
"is_pagebuilder_enabled": true
,
"is_wysiwyg_enabled": false,
"is_html_allowed_on_front": true,
"used_for_sort_by": false,
"is_filterable": true,
"is_filterable_in_search": true,
"is_used_in_grid": false,
"is_visible_in_grid": true,
"is_filterable_in_grid": false,
"position": 0,
"apply_to": [],
"is_searchable": "0",
"is_visible_in_advanced_search": "0",
"is_comparable": "1",
"is_used_for_promo_rules": "0",
"is_visible_on_front": "1",
"used_in_product_listing": "1",
"is_visible": true,
"scope": "store",
"frontend_input": "text",
"entity_type_id": "4",
"is_required": false,
"options": [],
"is_user_defined": true,
"default_frontend_label": "string",
"frontend_labels": [
"store_id": 0,
"label": "string"
],
"is_user_defined": true,
"default_frontend_label": "testing",
"frontend_labels": [],
"backend_type": "varchar",
"backend_model": "Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend",
"default_value": "",
"is_unique": "0",
"validation_rules": [],
"custom_attributes": [
"attribute_code": "test-attr",
"value": "true"
]
magento2 product-attribute rest-api custom-attributes webapi
magento2 product-attribute rest-api custom-attributes webapi
New contributor
New contributor
New contributor
asked May 2 at 20:24
natebaytenatebayte
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
natebayte is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f273263%2fcustom-attributes-not-returning-from-magento-2-rest-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
natebayte is a new contributor. Be nice, and check out our Code of Conduct.
natebayte is a new contributor. Be nice, and check out our Code of Conduct.
natebayte is a new contributor. Be nice, and check out our Code of Conduct.
natebayte is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f273263%2fcustom-attributes-not-returning-from-magento-2-rest-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown